cosmetic and remove usless default/break
This commit is contained in:
parent
2677cc3515
commit
ca137b1582
13
event.c
13
event.c
|
@ -229,13 +229,18 @@ handle_event_configurenotify(XEvent * e, awesome_config *awesomeconf)
|
||||||
{
|
{
|
||||||
XConfigureEvent *ev = &e->xconfigure;
|
XConfigureEvent *ev = &e->xconfigure;
|
||||||
|
|
||||||
if(ev->window == DefaultRootWindow(e->xany.display) && (ev->width != DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) || ev->height != DisplayHeight(e->xany.display, DefaultScreen(e->xany.display))))
|
if(ev->window == DefaultRootWindow(e->xany.display)
|
||||||
|
&& (ev->width != DisplayWidth(e->xany.display, DefaultScreen(e->xany.display))
|
||||||
|
|| ev->height != DisplayHeight(e->xany.display, DefaultScreen(e->xany.display))))
|
||||||
{
|
{
|
||||||
DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) = ev->width;
|
DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)) = ev->width;
|
||||||
DisplayHeight(e->xany.display, DefaultScreen(e->xany.display)) = ev->height;
|
DisplayHeight(e->xany.display, DefaultScreen(e->xany.display)) = ev->height;
|
||||||
XFreePixmap(e->xany.display, dc.drawable);
|
XFreePixmap(e->xany.display, dc.drawable);
|
||||||
dc.drawable = XCreatePixmap(e->xany.display, DefaultRootWindow(e->xany.display), DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height, DefaultDepth(e->xany.display, DefaultScreen(e->xany.display)));
|
dc.drawable = XCreatePixmap(e->xany.display, DefaultRootWindow(e->xany.display),
|
||||||
XResizeWindow(e->xany.display, awesomeconf->statusbar.window, DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height);
|
DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)),
|
||||||
|
awesomeconf->statusbar.height, DefaultDepth(e->xany.display, DefaultScreen(e->xany.display)));
|
||||||
|
XResizeWindow(e->xany.display, awesomeconf->statusbar.window,
|
||||||
|
DisplayWidth(e->xany.display, DefaultScreen(e->xany.display)), awesomeconf->statusbar.height);
|
||||||
updatebarpos(e->xany.display, awesomeconf->statusbar);
|
updatebarpos(e->xany.display, awesomeconf->statusbar);
|
||||||
arrange(e->xany.display, awesomeconf);
|
arrange(e->xany.display, awesomeconf);
|
||||||
}
|
}
|
||||||
|
@ -334,8 +339,6 @@ handle_event_propertynotify(XEvent * e, awesome_config *awesomeconf)
|
||||||
{
|
{
|
||||||
switch (ev->atom)
|
switch (ev->atom)
|
||||||
{
|
{
|
||||||
default:
|
|
||||||
break;
|
|
||||||
case XA_WM_TRANSIENT_FOR:
|
case XA_WM_TRANSIENT_FOR:
|
||||||
XGetTransientForHint(e->xany.display, c->win, &trans);
|
XGetTransientForHint(e->xany.display, c->win, &trans);
|
||||||
if(!c->isfloating && (c->isfloating = (getclient(trans) != NULL)))
|
if(!c->isfloating && (c->isfloating = (getclient(trans) != NULL)))
|
||||||
|
|
Loading…
Reference in New Issue