1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-26 08:22:37 +01:00

added some netwm support in WINGs

This commit is contained in:
kojima
2004-10-23 21:07:13 +00:00
parent 9ead135f51
commit df1228f387
9 changed files with 137 additions and 43 deletions

View File

@@ -72,7 +72,7 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
Bool somethingElse = False;
XEvent ev;
WSwitchPanel *swpanel = NULL;
KeyCode leftKey, rightKey, homeKey, endKey;
KeyCode leftKey, rightKey, homeKey, endKey, shiftLKey, shiftRKey;
if (!wwin)
return;
@@ -81,6 +81,8 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
rightKey = XKeysymToKeycode(dpy, XK_Right);
homeKey = XKeysymToKeycode(dpy, XK_Home);
endKey = XKeysymToKeycode(dpy, XK_End);
shiftLKey = XKeysymToKeycode(dpy, XK_Shift_L);
shiftRKey = XKeysymToKeycode(dpy, XK_Shift_R);
if (next)
hasModifier = (wKeyBindings[WKBD_FOCUSNEXT].modifier != 0);
@@ -179,7 +181,7 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
}
}
}
} else {
} else if (ev.xkey.keycode != shiftLKey && ev.xkey.keycode != shiftRKey) {
#ifdef DEBUG
printf("Got something else\n");
#endif

View File

@@ -317,7 +317,7 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
WMColor *color;
WMFont *boldFont= WMBoldSystemFontOfSize(scr->wmscreen, 12);
WMSetLabelRelief(panel->label, WRSunken);
WMSetLabelRelief(panel->label, WRSimple);
WMSetLabelFont(panel->label, boldFont);
color = WMDarkGrayColor(scr->wmscreen);
WMSetWidgetBackgroundColor(panel->label, color);