Re: Emailing: A taste of Haskell.pdf

Hey xmonad community, Simon PJ is running xmonad in xnest, for the upcoming OSCON Haskell tutorial, and we've noticed xnest seems to crop the edge of the screen - or misreport its size: http://www.cse.unsw.edu.au/~dons/tmp/screen-spj.png Anyone seen this, running xmonad in xnest, or know how to fix it? -- Don simonpj:
Phew! I think I managed a screen shot. Notice that xclock is truncated at the right, and both windows are truncated at the bottom. Help earnestly desired! Thanks
Simon
dons
simonpj:
Thanks.
While I think about it, I have a scaling problem, at least when using xnest. The right hand strip and bottom strip of each window is truncated -- e.g. the xterm window material disappears below the bottom of the displayed window. And xclock doesn't fit.
Any idea what that might be? I could send you a screenshot. Maybe xmonad thinks the display area is bigger than it is?
Yeah, a screen shot. What geometry is the xnest screen? Also, which version of xmonad are you using?
Can you manually enlarge the Xnest window? Xnest chooses a screen geometry when it starts and always reports this geometry to clients -- even if the actual containing window is smaller. Running 'xdpyinfo' inside Xnest will report the geometry it desires.

On Thu, Jul 05, 2007 at 04:38:31PM +1000, Donald Bruce Stewart wrote:
Hey xmonad community,
Simon PJ is running xmonad in xnest, for the upcoming OSCON Haskell tutorial, and we've noticed xnest seems to crop the edge of the screen - or misreport its size:
http://www.cse.unsw.edu.au/~dons/tmp/screen-spj.png
Anyone seen this, running xmonad in xnest, or know how to fix it?
Xnest defaults to an 800x600 screen. Perhaps SPJ's monitor is that big, in which case the virtual screen will be truncated to fit the decorations. Perhaps he should pass the '-geometry 640x480' option to Xnest? Stefan

But surely xnest should tell xmonad how big the window is, so that xmonad knows how to behave? If I resize xnest's window, it should tell xmonad, which should adjust. Still, I'll certainly try the -geometry thing, thanks Simon | -----Original Message----- | From: Stefan O'Rear [mailto:stefanor@cox.net] | Sent: 05 July 2007 07:53 | To: Donald Bruce Stewart | Cc: Simon Peyton-Jones; xmonad@haskell.org | Subject: Re: [Xmonad] Re: Emailing: A taste of Haskell.pdf | | On Thu, Jul 05, 2007 at 04:38:31PM +1000, Donald Bruce Stewart wrote: | > Hey xmonad community, | > | > Simon PJ is running xmonad in xnest, for the upcoming OSCON Haskell | > tutorial, and we've noticed xnest seems to crop the edge of the screen - | > or misreport its size: | > | > http://www.cse.unsw.edu.au/~dons/tmp/screen-spj.png | > | > Anyone seen this, running xmonad in xnest, or know how to fix it? | | Xnest defaults to an 800x600 screen. Perhaps SPJ's monitor is that big, | in which case the virtual screen will be truncated to fit the | decorations. | | Perhaps he should pass the '-geometry 640x480' option to Xnest? | | Stefan

On Thu, Jul 05, 2007 at 08:30:22AM +0100, Simon Peyton-Jones wrote:
But surely xnest should tell xmonad how big the window is, so that xmonad knows how to behave? If I resize xnest's window, it should tell xmonad, which should adjust.
Still, I'll certainly try the -geometry thing, thanks
I was going to write and say: when I've used xnest I've had to adjust for a border around the xnest window, and so if I was on a 1600x1200 screen (say), I'd tell xnest to use 1598x1198, with -geometry. However, looking at my xnest-using scripts, I see I don't do that, and do in fact say -geometry 1600x1200 - it's rdesktop I "trim" for. Still, I can report that I did use -geometry with xnest, and maybe trimming is worth thinking about... Perhaps I just didn't notice it under xnest. :) -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/

What I'm still missing is: why doesn't xmonad get told the correct window size by xnest? The -geom thing tells xnest how big a window it should throw up, but regardless of its window size it should report it faithfully to xmonad. Similarly on resizing, which comprehensively does not work -- ie resizing the xnest window, making it smaller, is not reflected in the xmonad layout. Instead xnest just truncates even more of it. S | -----Original Message----- | From: Andy Gimblett [mailto:A.M.Gimblett@swansea.ac.uk] | Sent: 05 July 2007 10:19 | To: Simon Peyton-Jones | Cc: Stefan O'Rear; Donald Bruce Stewart; xmonad@haskell.org | Subject: Re: [Xmonad] Re: Emailing: A taste of Haskell.pdf | | On Thu, Jul 05, 2007 at 08:30:22AM +0100, Simon Peyton-Jones wrote: | | > But surely xnest should tell xmonad how big the window is, so that | > xmonad knows how to behave? If I resize xnest's window, it should | > tell xmonad, which should adjust. | > | > Still, I'll certainly try the -geometry thing, thanks | | I was going to write and say: when I've used xnest I've had to adjust | for a border around the xnest window, and so if I was on a 1600x1200 | screen (say), I'd tell xnest to use 1598x1198, with -geometry. | | However, looking at my xnest-using scripts, I see I don't do that, and | do in fact say -geometry 1600x1200 - it's rdesktop I "trim" for. | Still, I can report that I did use -geometry with xnest, and maybe | trimming is worth thinking about... Perhaps I just didn't notice it | under xnest. :) | | -Andy | | -- | Andy Gimblett | Computer Science Department | University of Wales Swansea | http://www.cs.swan.ac.uk/~csandy/

On Thu, 5 Jul 2007 14:01:58 +0100
Simon Peyton-Jones
What I'm still missing is: why doesn't xmonad get told the correct window size by xnest? The -geom thing tells xnest how big a window it should throw up, but regardless of its window size it should report it faithfully to xmonad.
Similarly on resizing, which comprehensively does not work -- ie resizing the xnest window, making it smaller, is not reflected in the xmonad layout. Instead xnest just truncates even more of it.
S
Xnest is just not very nice in this respect -- it chooses a geometry at start up and sticks with it. It continues to report the same geometry to clients, no matter how you resize the containing Xnest window. Cheers, Spencer Janssen

aha! And I have discovered that if I give xnest geom settings that are small enough so that the xnest window is smaller than full-screen to start with, then indeed everything works as expected. If you give it geom settings that are bigger than full-screen, then it must pass the bigger ones one to xmonad, but meanwhile it displays its own window full-screen. Hence truncation.
Simon
| -----Original Message-----
| From: Spencer Janssen [mailto:sjanssen@cse.unl.edu]
| Sent: 05 July 2007 15:32
| To: Simon Peyton-Jones
| Cc: xmonad@haskell.org
| Subject: Re: [Xmonad] Re: Emailing: A taste of Haskell.pdf
|
| On Thu, 5 Jul 2007 14:01:58 +0100
| Simon Peyton-Jones
participants (5)
-
Andy Gimblett
-
dons@cse.unsw.edu.au
-
Simon Peyton-Jones
-
Spencer Janssen
-
Stefan O'Rear