From: Luc Moulinier on
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
From: Larry W. Virden on
On Jun 2, 11:16 am, Luc Moulinier <luc.moulin...(a)igbmc.fr> wrote:
> I'm working under windows XP, using Xming as a X11 server.
:
>
> I tried a simple example :
:
>
> 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.
From: Alexandre Ferrieux on
On Jun 2, 5:16 pm, Luc Moulinier <luc.moulin...(a)igbmc.fr> wrote:
> 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

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
From: Joe English on
Luc Moulinier asked:
> 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
From: Luc Moulinier on
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