[winswitch] How to use "randr" to resize the desktop?

Antoine Martin antoine at nagafix.co.uk
Sat Dec 27 17:35:09 GMT 2014

Please don't top post.

On 28/12/14 00:25, Heng Zhou wrote:
> Thanks for the reply. So RandR only works at the server side (because
> window manage runs at server side); resizing at client side does not
> work, right?
Sort of. RandR has nothing to do with the window manager.
You can't resize client-side because the xpra protocol does not support
it yet.
> But after I run the following commands at the server side:
> (1) xpra start :100
> (2) sudo DISPLAY=:100 Xnest +extension RANDR :200 -ac -geometry
> 800x600+24 &
> (3) Use Xpra Launcher to connect to the server. A 800x600 Xpra window
> comes out.
> (4) sudo DISPLAY=:200 metacity &
> There is an error: "Xlib:  extension "RANDR" missing on display ":200"."
> (5) sudo DISPLAY=:200 gnome-settings-daemon &
> (6) sudo DISPLAY=:200 gnome-panel &
> The GNOME Panel desktop environment appears
> (7) sudo DISPLAY=:200 xrandr --size 1024x768
Xdummy supports RandR, Xvfb does not, hence the error.

And don't run everything root...
> , I received an error: "RandR extension missing" and the size of the
> Xpra window containing the whole desktop is unchanged.
Like the error says...
> I don't know what is the matter. I also tried "sudo DISPLAY=:100
> xrandr --size 1024x768" but nothing is changed. It seems that the
> RANDR extension is not enabled on display :200 (or :100? I don't
> know), but how should I enable it?
By using Xdummy instead of Xvfb.
> I have already include the +extension RANDR option in step (2). Should
> I install some other packages? The server is running ubuntu 14.04.
And here is your problem again.
> Looking forward to your further clarification.
Let's just make it crystal clear: Ubuntu is creating all these problems,
either move away from it or be prepared to solve those problems on your own.


> On Sat, Dec 27, 2014 at 10:25 AM, Antoine Martin
> <antoine at nagafix.co.uk <mailto:antoine at nagafix.co.uk>> wrote:
>     On 27/12/14 22:18, Heng Zhou wrote:
>     > Hi,
>     >
>     > I can display a whole desktop using the instruction in
>     > http://xpra.org/trac/wiki/Usage. Now I hope I can miximize the
>     window
>     > containing the desktop if I double click the title bar of the
>     xpra window,
>     > just like miximizing a normal window in Windows.
>     "Double-click-to-maximize" is going to be desktop environment
>     specific,
>     often mapped as a shortcut for the maximize button.
>     In this case, it is not possible because the window has a fixed size,
>     and for that reason the maximize button should be disabled too.
>     > The same webpage says that
>     > "you can resize the desktop using the standard "randr" desktop
>     tools (and
>     > not by resizing the window at present)", so I think this is the
>     approach to
>     > accomplish what I want.
>     randr is the X11 protocol, you may use any tool that uses it, ie:
>     xrandr -s 1024x768
>     "man xrandr" for details
>     >  But after search the internet, I still have no idea
>     > how to do it. Could you please give me a step by step
>     configuration to
>     > accomplish miximizing the window containing the whole desktop by
>     double
>     > click?
>     It cannot be done at present because the window has a fixed size.
>     There is a ticket for that:
>     http://xpra.org/trac/ticket/530
>     It doesn't look hard to implement, I just haven't had the time.
>     >  Thank you very much!
>     Cheers
>     Antoine
>     _______________________________________________
>     shifter-users mailing list
>     shifter-users at lists.devloop.org.uk
>     <mailto:shifter-users at lists.devloop.org.uk>
>     http://lists.devloop.org.uk/mailman/listinfo/shifter-users

More information about the shifter-users mailing list