This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.
The branch, next has been updated
via 7490b14bf0573283cd11eea3b1b6392c6f38e2dd (commit)
from a750fe03f424cf47e4f7aa462fd24e9b38c4d196 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/7490b14bf0573283cd11eea3b1b6392c6f38e2dd
commit 7490b14bf0573283cd11eea3b1b6392c6f38e2dd
Author: Ambrus Szabo <[email protected]>
Date: Tue Apr 5 12:36:11 2011 +0200
Bugfix: java menu problem after resize, maximize
From the original report by Tamas Teves:
"i'm having (and have, for a long time) problems with openoffice and
java-based (perhaps only netbeans-based?) apps.
for openoffice, any menu opens in the far right edge (with xinerama,
on the far right edge of the rightmost display) of the display. it
then can be clicked and operated corretly where it appears.
as for netbeans (and jswat, which also uses netbeans platform as a
base), it's a bit more complicated, but let me try to describe. start
netbeans so that it is not maximized and not in the upper left of the
display. it works fine. move it around, still works fine, resize,
still works fine. now if i maximize it (not by moving to the upper
left corner and resizing, but by the maximize shortcut), then the
menus start acting weird. it seems that the actual position of the
mouse pointer and the hot spot of the mouse pointer get "out of sync"
so to speak, as if the hot spot stayed where the window was before
maximization.
i've made a capture which hopefully better shows what i'm trying to
say. this is a netbeans window maximized, while i'm trying to click
tools->options. the left mouse button must always be held down, or
else it instantly loses any interaction with the menus (in the capture
i released it once when i completely lost track of where i might be).
the capture is available at http://dawn.dev.hu/~ice/tmp/wmjava.avi
i'm not sure whether java stuff other than those based on netbeans
platform exhibit this behaviour. i've seen this with at least one
other nb platform stuff as well."
The fix is to call wWindowSynthConfigureNotify() after wWindowConfigure()
diff --git a/src/actions.c b/src/actions.c
index eb46f3f..d7edf45 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -388,6 +388,7 @@ void wMaximizeWindow(WWindow *wwin, int directions)
usableArea.y2 - usableArea.y1, &new_width, &new_height);
wWindowConfigure(wwin, new_x, new_y, new_width, new_height);
+ wWindowSynthConfigureNotify(wwin);
WMPostNotificationName(WMNChangedState, wwin, "maximize");
@@ -540,6 +541,7 @@ void wUnmaximizeWindow(WWindow *wwin)
wwin->flags.maximized = 0;
wWindowConfigure(wwin, x, y, w, h);
+ wWindowSynthConfigureNotify(wwin);
WMPostNotificationName(WMNChangedState, wwin, "maximize");
}
diff --git a/src/moveres.c b/src/moveres.c
index c84deab..d0ac651 100644
--- a/src/moveres.c
+++ b/src/moveres.c
@@ -2077,6 +2077,7 @@ void wMouseResizeWindow(WWindow * wwin, XEvent * ev)
}
wWindowConfigure(wwin, fx, fy, fw, fh -
vert_border);
+ wWindowSynthConfigureNotify(wwin);
}
return;
-----------------------------------------------------------------------
Summary of changes:
src/actions.c | 2 ++
src/moveres.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
--
wmaker-crm.git ("Fork from the last available CVS version of Window Maker")
--
To unsubscribe, send mail to [email protected].