[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] a better fix...
Hi again.
Attached a "better" fix, since this snapping issue manifested in other
cases as well (e.g. new floating windows overlapping the statusbar).
Ignore the previous patch and use this instead.
--- patch-snap.diff begins here ---
diff --git a/client.c b/client.c
index 9d3c1ea..2af96f2 100644
--- a/client.c
+++ b/client.c
@@ -372,7 +372,7 @@ manage(Display *disp, DC *drawcontext, Window w, XWindowAttributes *wa, awesome_
Window trans;
Status rettrans;
XWindowChanges wc;
- ScreenInfo *si = get_display_info(disp, awesomeconf->screen, NULL);
+ ScreenInfo *si = get_display_info(disp, awesomeconf->screen, &awesomeconf->statusbar);
ScreenInfo *screen_info;
c = p_new(Client, 1);
@@ -385,7 +385,7 @@ manage(Display *disp, DC *drawcontext, Window w, XWindowAttributes *wa, awesome_
c->oldborder = wa->border_width;
c->display = disp;
c->phys_screen = get_phys_screen(c->display, c->screen);
- screen_info = get_screen_info(c->display, c->screen, NULL);
+ screen_info = get_screen_info(c->display, c->screen, &awesomeconf->statusbar);
if(c->w == screen_info[c->screen].width && c->h == screen_info[c->screen].height)
{
c->x = 0;
diff --git a/event.c b/event.c
index ca61eef..53d08e7 100644
--- a/event.c
+++ b/event.c
@@ -60,7 +60,7 @@ movemouse(Client * c, awesome_config *awesomeconf)
XEvent ev;
ScreenInfo *si;
- si = get_screen_info(c->display, c->screen, NULL);
+ si = get_screen_info(c->display, c->screen, &awesomeconf->statusbar);
ocx = nx = c->x;
ocy = ny = c->y;
--- patch-snap.dff ends here ---
Cheers...
\n\n
--
To unsubscribe, send mail to awesome-unsubscribe@xxxxxxxxxxxxx