Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Xming X11 server and fullscreen mode

785 views
Skip to first unread message

Luc Moulinier

unread,
Jun 2, 2010, 11:16:22 AM6/2/10
to
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

unread,
Jun 2, 2010, 2:35:33 PM6/2/10
to
On Jun 2, 11:16 am, Luc Moulinier <luc.moulin...@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.

Alexandre Ferrieux

unread,
Jun 2, 2010, 3:37:44 PM6/2/10
to

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

Joe English

unread,
Jun 2, 2010, 4:02:00 PM6/2/10
to
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

Luc Moulinier

unread,
Jun 3, 2010, 4:11:24 AM6/3/10
to
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

Arnold Snarb

unread,
Jun 3, 2010, 4:01:00 PM6/3/10
to
Alexandre Ferrieux wrote:

> Luc Moulinier wrote:
>> 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

0 new messages