Launchpad has imported 9 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=7511.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-04-18T08:40:19+00:00 Harald Judt wrote:

Workspace switcher doesn't recognize screen changes done by xrandr.

Steps to reproduce:

1) Start with a single-monitor configuration. For this example, I use
the external screen VGA-0 attached to the laptop, while the laptop's
LVDS is turned off.

2) `xrandr --output LVDS --auto --below VGA-0' makes the desktop extend
to the laptop's LVDS, putting it below the external screen while the
panels stay where they are.

Expected results:
Workspace switcher resembles the new screen size in its miniature view.

Actual results:
Workspace switcher still resembles the old screen size in its miniature view 
and seems not to know about the new screen configuration.

Workaround:
`xfce4-panel -r'

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/0

------------------------------------------------------------------------
On 2011-04-18T11:02:17+00:00 Yves-Alexis Perez wrote:

Note that adding or removing a workspace seems to make the pager notice
the layout change.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/1

------------------------------------------------------------------------
On 2011-07-28T19:41:21+00:00 8-nick wrote:

*** Bug 7849 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/2

------------------------------------------------------------------------
On 2012-12-09T22:15:16+00:00 Hans Nieser wrote:

I seem to suffer from this bug, except in a different way - and the
workaround doesn't work for me. I started using XFCE a few weeks ago and
initially I had a single-monitor setup and everything was fine. Then,
through xrandr (using the arandr GUI tool), I expanded my desktop to
cover the second monitor that I have hooked up, everything was still
fine and the workspace switcher reflected that change.

However when I now run an xrandr command to switch back to single-
monitor, the workspace switcher doesn't update and keeps taking up space
as though I have a dual-monitor setup. Running 'xfce4-panel -r',
removing and re-adding the workspace switcher applet, restarting my XFCE
session, or using the display settings application to fiddle with things
(toggling my 2nd monitor to see if it would case everything to go back
to normal) doesn't seem to help either. I've gone over all the settings
under the settings editor to see if anything was left behind there but
couldn't find anything wrong there either.

So now I'm wondering; is what I'm having the same as this bug, but
manifesting in a different way, or should I file a separate bug report
for this?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/3

------------------------------------------------------------------------
On 2012-12-09T22:17:17+00:00 Hans Nieser wrote:

I forgot to mention; adding or removing a workspace doesn't seem to help
either, the workspace switcher does update to reflect the new number of
workspaces, but each individual workspace is still too wide as though I
have two monitors active.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/4

------------------------------------------------------------------------
On 2013-02-01T04:29:46+00:00 Marcianx wrote:

Created attachment 4894
display the X11 root window property _NET_DESKTOP_GEOMETRY

TL;DR:  The pager itself is (presumably) fine. Xfwm needs to be fixed to
update the _NET_DESKTOP_GEOMETRY property.

Long story:
I have the same problem as Hans Nieser. I might have located the source of this 
bug. The Xfce pager uses libwnck, which uses the _NET_DESKTOP_GEOMETRY property 
to determine the full desktop size. However, it seems that Xfwm does not update 
the _NET_DESKTOP_GEOMETRY property
http://standards.freedesktop.org/wm-spec/1.5/ar01s03.html
According to the page above, this property should be set by the window manager. 

I verified that Xfwm indeed does not modify this property using the attached C 
file, which can be compiled via
    gcc test.c -lX11 -o test

Steps:
1. Log in and enter xfce desktop.
2. Compile test.c and run ./test to verify that the desktop geometry is correct.
3. Change the screen configuration via xrandr by adding/removing a monitor, or 
change the virtual desktop size via "xrandr --fb widthxheight" (as along as the 
new size is big enough to hold the existing screen configuration).
4. Run ./test again and observe that the desktop geometry stays unchanged.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/5

------------------------------------------------------------------------
On 2013-03-16T14:10:18+00:00 Hans Nieser wrote:

(In reply to comment #5)
> Created attachment 4894 [details]
> display the X11 root window property _NET_DESKTOP_GEOMETRY
> 
> TL;DR:  The pager itself is (presumably) fine. Xfwm needs to be fixed to
> update the _NET_DESKTOP_GEOMETRY property.
> 

Thank you for that insight - I finally got enough of this bug so I spent
today trying to come up with a patch that I have attached to bug 9922.
This fixes the issue that _NET_DESKTOP_GEOMETRY doesn't update, and
makes the pager widget relayout correctly.

One minor remaining issue (that I assume has nothing to do with xfwm4)
is that I do need to click the pager widget once, or change workspace
(or anything that forces it to update itself) to make it relayout
correctly immediately after login, but that beats having to restart
xfwm4 every time (`xfce-panel -r` never worked for me, btw, not sure why
that worked for OP)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/6

------------------------------------------------------------------------
On 2013-03-16T14:12:09+00:00 Yves-Alexis Perez wrote:

(In reply to comment #6)
> One minor remaining issue (that I assume has nothing to do with xfwm4) is
> that I do need to click the pager widget once, or change workspace (or
> anything that forces it to update itself) to make it relayout correctly
> immediately after login, but that beats having to restart xfwm4 every time
> (`xfce-panel -r` never worked for me, btw, not sure why that worked for OP)

It was always the case, see comment #1.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/7

------------------------------------------------------------------------
On 2014-01-26T16:41:41+00:00 Nils-henkel wrote:

I think that I am also suffering from this bug, so I would love to see
Hans Nieser's patch in some official release. As far as I can tell, it
seems not to be included. Would it be possible to push this somehow?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1241895/comments/12


** Changed in: xfwm4
       Status: Unknown => Confirmed

** Changed in: xfwm4
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1241895

Title:
  Removing secondary display does not resize workspace.

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfwm4/+bug/1241895/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to