1637
1638
* If FULLSCREEN and focused, jam to (nearly; let the user still win
1638
* if they try) the top.
1639
* if they try) the top. We also need to handle transients; they
1640
* might not have focus, but still need to be on top of the window
1641
* they're coming up transient for, or else they'll be hidden
1640
if(owl->pri_aflags & OTP_AFLAG_FULLSCREEN && Scr->Focus == owl->twm_win) {
1641
pri = EWMH_PRI_FULLSCREEN + OTP_ZERO;
1644
if(owl->pri_aflags & OTP_AFLAG_FULLSCREEN) {
1645
if(Scr->Focus == owl->twm_win) {
1646
// It's focused, shift it up
1647
pri = EWMH_PRI_FULLSCREEN + OTP_ZERO;
1649
else if(owl->twm_win->istransient) {
1650
// It's a transient of something else; if that something else
1651
// has the fullscreen/focus combo, we should pop this up top
1652
// too. Technically, we should perhaps test whether its
1653
// parent is also OTP_AFLAG_FULLSCREEN, but if the transient
1654
// has it, the parent probably does too. Worry about that
1655
// detail if it ever becomes a problem.
1656
TwmWindow *parent = GetTwmWindow(owl->twm_win->transientfor);
1657
if(Scr->Focus == parent) {
1658
// Shift this up so we stay on top
1659
pri = EWMH_PRI_FULLSCREEN + OTP_ZERO;