mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Support for GNUstep control of window titlebars added.
This commit is contained in:
@@ -722,7 +722,7 @@ StartUp(Bool defaultScreenOnly)
|
|||||||
_XA_WINDOWMAKER_ICON_SIZE = atom[17];
|
_XA_WINDOWMAKER_ICON_SIZE = atom[17];
|
||||||
_XA_WINDOWMAKER_ICON_TILE = atom[18];
|
_XA_WINDOWMAKER_ICON_TILE = atom[18];
|
||||||
|
|
||||||
_XA_GNUSTEP_TITLEBAR_STATE = atom[99];
|
_XA_GNUSTEP_TITLEBAR_STATE = atom[19];
|
||||||
|
|
||||||
#ifdef OFFIX_DND
|
#ifdef OFFIX_DND
|
||||||
_XA_DND_SELECTION = XInternAtom(dpy, "DndSelection", False);
|
_XA_DND_SELECTION = XInternAtom(dpy, "DndSelection", False);
|
||||||
|
|||||||
@@ -1397,6 +1397,7 @@ wManageInternalWindow(WScreen *scr, Window window, Window owner,
|
|||||||
wwin->prev = NULL;
|
wwin->prev = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wwin->flags.is_gnustep == 0)
|
||||||
wFrameWindowChangeState(wwin->frame, WS_UNFOCUSED);
|
wFrameWindowChangeState(wwin->frame, WS_UNFOCUSED);
|
||||||
|
|
||||||
/* if (wPreferences.auto_focus)*/
|
/* if (wPreferences.auto_focus)*/
|
||||||
@@ -1583,6 +1584,7 @@ wUnmanageWindow(WWindow *wwin, Bool restore, Bool destroyed)
|
|||||||
|
|
||||||
if (wasFocused) {
|
if (wasFocused) {
|
||||||
if (newFocusedWindow != owner && owner) {
|
if (newFocusedWindow != owner && owner) {
|
||||||
|
if (wwin->flags.is_gnustep == 0)
|
||||||
wFrameWindowChangeState(owner->frame, WS_UNFOCUSED);
|
wFrameWindowChangeState(owner->frame, WS_UNFOCUSED);
|
||||||
}
|
}
|
||||||
wSetFocusTo(scr, newFocusedWindow);
|
wSetFocusTo(scr, newFocusedWindow);
|
||||||
@@ -1638,6 +1640,7 @@ wWindowFocus(WWindow *wwin, WWindow *owin)
|
|||||||
|
|
||||||
wwin->flags.semi_focused = 0;
|
wwin->flags.semi_focused = 0;
|
||||||
|
|
||||||
|
if (wwin->flags.is_gnustep == 0)
|
||||||
wFrameWindowChangeState(wwin->frame, WS_FOCUSED);
|
wFrameWindowChangeState(wwin->frame, WS_FOCUSED);
|
||||||
|
|
||||||
wwin->flags.focused = 1;
|
wwin->flags.focused = 1;
|
||||||
@@ -1693,6 +1696,7 @@ wWindowUnfocus(WWindow *wwin)
|
|||||||
{
|
{
|
||||||
CloseWindowMenu(wwin->screen_ptr);
|
CloseWindowMenu(wwin->screen_ptr);
|
||||||
|
|
||||||
|
if (wwin->flags.is_gnustep == 0)
|
||||||
wFrameWindowChangeState(wwin->frame, wwin->flags.semi_focused
|
wFrameWindowChangeState(wwin->frame, wwin->flags.semi_focused
|
||||||
? WS_PFOCUSED : WS_UNFOCUSED);
|
? WS_PFOCUSED : WS_UNFOCUSED);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user