Discussion:
Xming X11 server and fullscreen mode
(too old to reply)
Luc Moulinier
2010-06-02 15:16:22 UTC
Permalink
Hello !

I'm working under windows XP, using Xming as a X11 server.
I'm trying to maximize a toplevel window through wm attributes .t -
fullscreen 1 but nothing happens ...

I tried a simple example :
toplevel .t
pack [label .t.l -text "Hello !" -bg cyan]
focus .t
wm attributes .t -fullscreen 1

does not change the window aspect ...

What am I missing here ? Or is it something related with Xming ? (

Many thanks in advance !

Luc
Larry W. Virden
2010-06-02 18:35:33 UTC
Permalink
Post by Luc Moulinier
I'm working under windows XP, using Xming as a X11 server.
does not change the window aspect ...
What am I missing here ? Or is it something related with Xming ? (
Okay, I'm using XP SP3. I use Cygwin's Xwin. When I try to maximize a
window, it works as expected.
I am using tcl/tk 8.5.8.
Alexandre Ferrieux
2010-06-02 19:37:44 UTC
Permalink
Post by Luc Moulinier
Hello !
I'm working under windows XP, using Xming as a X11 server.
I'm trying to maximize a toplevel window through wm attributes .t -
fullscreen 1 but nothing happens ...
toplevel .t
pack [label .t.l -text "Hello !" -bg cyan]
focus .t
wm attributes .t -fullscreen 1
does not change the window aspect ...
What am I missing here ? Or is it something related with Xming ? (
Many thanks in advance !
Luc
What Tcl version are you using ?
Also, if there is an Unix machine on your LAN, try setting DISPLAY (or
whatever is used on windows for X clients) to it, after an 'xhost +'
on the other side. Does the fullscreen code work ?

-Alex
Arnold Snarb
2010-06-03 20:01:00 UTC
Permalink
Post by Alexandre Ferrieux
Post by Luc Moulinier
I'm working under windows XP, using Xming as a X11 server.
I'm trying to maximize a toplevel window through wm attributes .t -
fullscreen 1 but nothing happens ...
What Tcl version are you using ?
Also, if there is an Unix machine on your LAN, try setting DISPLAY (or
whatever is used on windows for X clients) to it,
after an 'xhost +' on the other side.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please to be not recommending saying 'xhost +'

Saying 'xhost +' is a Bad Thing To Do which you should
not be telling other people to be trying.


Other than that, your advice is good.

kthxbye.


--Arnie

Joe English
2010-06-02 20:02:00 UTC
Permalink
Post by Luc Moulinier
I'm working under windows XP, using Xming as a X11 server.
I'm trying to maximize a toplevel window through
wm attributes .t -fullscreen 1
but nothing happens ...
What am I missing here ? Or is it something related with Xming ? (
Under X11, the wm -fullscreen, -zoomed, -topmost, and other
attributes require cooperation from the window manager to work.

Most likely cause is that your window manager is not EWMH-aware,
or possibly that you don't have a window manager at all.

I'm not familiar with Xming, but from a quick scan of the manual [1]
it probably also depends on the Xming mode (one window / nodecoration /
multiwindow / etc.)


--Joe English

[1] http://www.straightrunning.com/XmingNotes/manual.php
Luc Moulinier
2010-06-03 08:11:24 UTC
Permalink
Hello ! I find a working example !

set win .toto
toplevel $win
pack [label $win.l -text "he ho,\nLe soleil brille \nbrille brille" -
bg cyan] -expand 1 -fill both

set Oldw [winfo width $win]
set Oldh [winfo height $win]
set sh [winfo screenheight $win]
set sw [winfo screenwidth $win]

wm minsize $win $sw $sh
wm maxsize $win $sw $sh
wm overrideredirect $win 1
wm attributes $win -fullscreen 1


If you remove the "wm maxsize" statement, it doesn't work anymore.

Is this "normal" ? We should supply the maximum screen size available
for expansion ?

Thanks for enlighting me !!

Luc
Loading...