1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +01:00

allow omnipresent iconized windows to be focused on empty workspaces

This commit is contained in:
kojima
2004-10-20 06:11:30 +00:00
parent f555ccb9b9
commit 3a7749b0fc
3 changed files with 8 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
WSwitchPanel *swpanel = NULL; WSwitchPanel *swpanel = NULL;
KeyCode leftKey, rightKey, homeKey, endKey; KeyCode leftKey, rightKey, homeKey, endKey;
if (!wwin || wwin->frame->workspace != scr->current_workspace) if (!wwin)
return; return;
leftKey = XKeysymToKeycode(dpy, XK_Left); leftKey = XKeysymToKeycode(dpy, XK_Left);
@@ -117,7 +117,12 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
} }
} }
else else
newFocused= wwin; {
if (wwin->frame->workspace == scr->current_workspace)
newFocused= wwin;
else
newFocused= NULL;
}
while (hasModifier && !done) { while (hasModifier && !done) {
WMMaskEvent(dpy, KeyPressMask|KeyReleaseMask|ExposureMask|PointerMotionMask, &ev); WMMaskEvent(dpy, KeyPressMask|KeyReleaseMask|ExposureMask|PointerMotionMask, &ev);

View File

@@ -40,7 +40,6 @@ WCreateGeometryView(WMScreen *scr)
WGeometryView *gview; WGeometryView *gview;
char buffer[64]; char buffer[64];
static W_Class widgetClass = 0; static W_Class widgetClass = 0;
WMColor *color;
if (!widgetClass) { if (!widgetClass) {
widgetClass = W_RegisterUserWidget(); widgetClass = W_RegisterUserWidget();

View File

@@ -276,7 +276,7 @@
#define DEF_CLIP_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=10\"" #define DEF_CLIP_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=10\""
#define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\"" #define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
#define DEF_WORKSPACE_NAME_FONT "Trebuchet MS,Luxi Sans:bold:pixelsize=24" #define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=24\""
#define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */ #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */