! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-panel covers fullscreen windows with multiple monitors
Status:
RESOLVED: MOVED
Product:
Xfce4-panel

Comments

Description lvlort 2015-10-18 21:43:19 CEST
When using multiple monitors, when I have a fullscreen window like a video on one and a document on the other, when the fullscreen window loses focus the panel starts to cover it. This doesn't just happen with videos in fullscreen it happens watching youtube with iceweasel, chrome, and all fullscreen games.

I recently switched to Xfce from openbox where this bug didn't occur. Also on a side note there is also some weird behavior in full screen apps with the alt tab menu too. Sometimes fullscreen apps steal focus and I can't alt tab out of them.
Comment 1 lvlort 2015-10-18 21:44:57 CEST
Created attachment 6485 
Image of the panel covering a fullscreen youtube video with dual monitors, one vertical
Comment 2 Gus 2016-09-15 10:10:21 CEST
*** Bug 12815 has been marked as a duplicate of this bug. ***
Comment 3 Lucas St 2017-03-25 20:42:35 CET
I wanted to confirm that this problem also exists in my setup.

I observed that this behaviour is mainly dependent on if there is another monitor bordering the side of the monitor on which the panel is located.

Also for me it seems that sometimes the space is instead reserved on that monitor bordering the monitor with the panel. (please see my image for clarification).
Comment 4 Lucas St 2017-03-25 20:48:05 CET
Created attachment 7056 
Screenshot showing the misplacement of the reserved space
Comment 5 Lucas St 2017-03-26 07:56:49 CEST
Created attachment 7058 
Removes feature, which removes occupied space by panel bordering other monitors.

Ok.
So it seems like this is an intended behaviour.
This code passage at panel-window.c:2102 specificially
turns of "struts" when a monitor is on the side next to the panel:

**
          /* check if this monitor prevents us from setting struts */
          if ((window->struts_edge == STRUTS_EDGE_LEFT && b.x < a.x)
              || (window->struts_edge == STRUTS_EDGE_RIGHT
                  && b.x + b.width > a.x + a.width))
            {
              dest_y = MAX (a.y, b.y);
              dest_h = MIN (a.y + a.height, b.y + b.height) - dest_y;
              if (dest_h > 0)
                window->struts_edge = STRUTS_EDGE_NONE;
            }
          else if ((window->struts_edge == STRUTS_EDGE_TOP && b.y < a.y)
                   || (window->struts_edge == STRUTS_EDGE_BOTTOM
                       && b.y + b.height > a.y + a.height))
            {
              dest_x = MAX (a.x, b.x);
              dest_w = MIN (a.x + a.width, b.x + b.width) - dest_x;
              if (dest_w > 0)
                window->struts_edge = STRUTS_EDGE_NONE;
            }
**

Though I have to say I don't really get why this is done since I can not think of a situation I want my panel to hide behind a window locked to a site of a monitor.

I made a patch removing this feature.

Until now I only found one side effect of this:
Moving windows between screens lets them snap about half way through the border.
But I think it's less annyoing then the panel hiding the top of my window.

I don't recommend using this as a fix for upstream or so.
But if someone has the same problem he can think about applying this.
Comment 6 Kalle Kadakas 2017-04-24 16:20:18 CEST
The bug is still present, or a feature.
Has something changed?
Patched the panel, but it seems to not take effect. When going full-screen on youtube or any game and clicking something in another monitor, the panel still pops up.
Comment 7 Kalle Kadakas 2017-04-24 16:25:52 CEST
If it is any help, then the bug appears to affect xfwm specifically. When switching the WM to Marco, kwin or Compiz, the issue disappears.
Comment 8 Landry Breuil editbugs 2018-10-24 16:25:15 CEST
*** Bug 12268 has been marked as a duplicate of this bug. ***
Comment 9 Skunnyk editbugs 2018-10-31 23:05:41 CET
Seems to be related to https://bugzilla.xfce.org/show_bug.cgi?id=9051 (xfwm4)
Comment 10 Git Bot editbugs 2020-05-28 01:58:00 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/136.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12269

Reported by:
lvlort
Reported on: 2015-10-18
Last modified on: 2020-05-28
Duplicates (2):
  • 12268 xfce4-panel covers fullscreen apps on multiple monitors
  • 12815 Panel shows over fullscreen windows

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
4.10.0

Attachments

Additional information