I don't get your xor operation with the window state.
Xor would mean that if the state bit 'maximized' it set it will unset it.
Is that your intention?
To me this is badly readable code, it requires the reader to be very attentive and its easy to make a logical mistake.
If you want to toggle the maximized bit, you can simply set the bit inverted.
Do you want always to set maximized in this method or only when some condition is met, if so - which condition?
If you would to wrap line 8 in a method, which descriptive name would you give that method?





Reply With Quote
Bookmarks