summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-03 09:39:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-03 09:39:13 +0200
commit3810658bc4775ec51a0e0fd564b3724cfc547f98 (patch)
tree9ebf3800e469714f80c20ae0dbbab8ed1104e14e
parent85fba735f87bb9aae2894f658d4b6c470fbe672a (diff)
Back out 02_changeset_r52_netwm_full_screen.patch from Debian (closes #22)
The only thing the patch seems to do is try to calculate the window borders so it can move the window to the right place. However, XResizeWindow simply does not move the window no matter how wide the borders are, which is the intended behaviour. Plus, certain window managers (like fluxbox) report an incorrect window border width. I have yet to test this commit on a Xinerama system, though. It _might_ affect something there.
-rw-r--r--src/winwidget.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 4481c94..ab5478d 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -758,10 +758,6 @@ void winwidget_move(winwidget winwid, int x, int y)
void winwidget_resize(winwidget winwid, int w, int h)
{
- Window ignored_window;
- XWindowAttributes attributes;
- int tc_x, tc_y;
-
if (opt.geom_flags) {
winwid->had_resize = 1;
return;
@@ -773,16 +769,7 @@ void winwidget_resize(winwidget winwid, int w, int h)
winwid->w = (w > scr->width) ? scr->width : w;
winwid->h = (h > scr->height) ? scr->height : h;
}
- /* XResizeWindow(disp, winwid->win, winwid->w, winwid->h); */
- XGetWindowAttributes(disp, winwid->win, &attributes);
- XTranslateCoordinates(disp, winwid->win, attributes.root,
- -attributes.border_width -
- attributes.x,
- -attributes.border_width - attributes.y, &tc_x, &tc_y, &ignored_window);
- winwid->x = tc_x;
- winwid->y = tc_y;
- XMoveResizeWindow(disp, winwid->win, tc_x, tc_y, winwid->w, winwid->h);
-
+ XResizeWindow(disp, winwid->win, winwid->w, winwid->h);
winwid->had_resize = 1;
XFlush(disp);