Skip to content
Snippets Groups Projects
Commit 29a9dd91 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Apply 02_changeset_r52_netwm_full_screen.patch from Debian

parent c21d03b1
No related branches found
No related tags found
No related merge requests found
......@@ -788,6 +788,10 @@ winwidget_resize(winwidget winwid,
int w,
int h)
{
Window ignored_window;
XWindowAttributes attributes;
int tc_x, tc_y;
D_ENTER(4);
if (opt.geom_flags) {
winwid->had_resize = 1;
......@@ -800,7 +804,16 @@ winwidget_resize(winwidget winwid,
winwid->w = (w > scr->width) ? scr->width : w;
winwid->h = (h > scr->height) ? scr->height : h;
}
XResizeWindow(disp, winwid->win, winwid->w, winwid->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);
winwid->had_resize = 1;
XFlush(disp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment