mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Remove WMFullscreenLevel
Make fullscreen windows be on the same level as normal ones.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a5ca34ccb1
commit
a504370f3b
@@ -58,7 +58,6 @@ enum {
|
||||
WMSubmenuLevel = 15,
|
||||
WMMainMenuLevel = 20,
|
||||
WMStatusLevel = 21,
|
||||
WMFullscreenLevel = 50,
|
||||
WMModalLevel = 100,
|
||||
WMPopUpLevel = 101,
|
||||
WMScreensaverLevel = 1000,
|
||||
|
||||
@@ -701,7 +701,7 @@ void wFullscreenWindow(WWindow *wwin)
|
||||
|
||||
wWindowConfigureBorders(wwin);
|
||||
|
||||
ChangeStackingLevel(wwin->frame->core, WMFullscreenLevel);
|
||||
ChangeStackingLevel(wwin->frame->core, WMNormalLevel);
|
||||
|
||||
wwin->bfs_geometry.x = wwin->frame_x;
|
||||
wwin->bfs_geometry.y = wwin->frame_y;
|
||||
@@ -725,14 +725,10 @@ void wUnfullscreenWindow(WWindow *wwin)
|
||||
|
||||
wwin->flags.fullscreen = False;
|
||||
|
||||
if (wwin->frame->core->stacking->window_level == WMFullscreenLevel) {
|
||||
if (WFLAGP(wwin, sunken)) {
|
||||
ChangeStackingLevel(wwin->frame->core, WMSunkenLevel);
|
||||
} else if (WFLAGP(wwin, floating)) {
|
||||
ChangeStackingLevel(wwin->frame->core, WMFloatingLevel);
|
||||
} else {
|
||||
ChangeStackingLevel(wwin->frame->core, WMNormalLevel);
|
||||
}
|
||||
}
|
||||
|
||||
wWindowConfigure(wwin, wwin->bfs_geometry.x, wwin->bfs_geometry.y,
|
||||
|
||||
@@ -927,7 +927,7 @@ static int getWindowLayer(WWindow *wwin)
|
||||
if (wwin->transient_for) {
|
||||
WWindow *parent = wWindowFor(wwin->transient_for);
|
||||
if (parent && parent->flags.fullscreen)
|
||||
layer = WMFullscreenLevel;
|
||||
layer = WMNormalLevel;
|
||||
}
|
||||
/* //layer = WMPopUpLevel; // this seems a bad idea -Dan */
|
||||
} else if (wwin->type == net_wm_window_type_normal) {
|
||||
|
||||
Reference in New Issue
Block a user