gnustep / libs-back

The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
http://www.gnustep.org
GNU General Public License v3.0
50 stars 34 forks source link

placewindow:: fix frame check for multi-monitor layout #24

Closed trunkmaster closed 4 years ago

trunkmaster commented 4 years ago

When monitors layout was changed windows need to update their positions on screen. There are the cases when OpenStep frames is not changed while Xlib did and vise versa. This fix adds checks for OpenStep frame changes as well as Xlib's.

trunkmaster commented 4 years ago

Sorry, I lost track of these different changes. This one seems to revert some previous change plus to add on top. Hopefully you understand what you are doing :-)

Sure I know. The changes are quite simple:

  1. Use internal cached frame of NSWindow (OpenStep) instead of NSWindow's frame in if statements.
  2. Also use Xlib cached frame of window in if statements.