8342785: XWindowPeer::getNewLocation() adheres to ICCCM 4.1.5 only with some WMs
Reviewed-by: prr, azvegint
This commit is contained in:
parent
db7ee3dad1
commit
4bc826ac1e
@ -767,17 +767,6 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
|
|||||||
// a window is resized but the client can not tell if the window was
|
// a window is resized but the client can not tell if the window was
|
||||||
// moved or not. The client should consider the position as unknown
|
// moved or not. The client should consider the position as unknown
|
||||||
// and use TranslateCoordinates to find the actual position.
|
// and use TranslateCoordinates to find the actual position.
|
||||||
//
|
|
||||||
// TODO this should be the default for every case.
|
|
||||||
switch (runningWM) {
|
|
||||||
case XWM.CDE_WM:
|
|
||||||
case XWM.KDE2_WM:
|
|
||||||
case XWM.MOTIF_WM:
|
|
||||||
case XWM.METACITY_WM:
|
|
||||||
case XWM.MUTTER_WM:
|
|
||||||
case XWM.SAWFISH_WM:
|
|
||||||
case XWM.UNITY_COMPIZ_WM:
|
|
||||||
{
|
|
||||||
Point xlocation = queryXLocation();
|
Point xlocation = queryXLocation();
|
||||||
if (log.isLoggable(PlatformLogger.Level.FINE)) {
|
if (log.isLoggable(PlatformLogger.Level.FINE)) {
|
||||||
log.fine("New X location: {0}", xlocation);
|
log.fine("New X location: {0}", xlocation);
|
||||||
@ -785,11 +774,6 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
|
|||||||
if (xlocation != null) {
|
if (xlocation != null) {
|
||||||
newLocation = xlocation;
|
newLocation = xlocation;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return newLocation;
|
return newLocation;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user