[maemo-developers] dealing with non-GTK windows
From: Tapani Pälli tapani.palli at nokia.comDate: Thu Oct 18 08:37:56 EEST 2007
- Previous message: dealing with non-GTK windows
- Next message: dealing with non-GTK windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello;
ext Austin Che wrote:
> Some questions about non-GTK windows that applications may show:
>
>
What type of window are you talking about? Using Xlib directly? SDL?
> - Is it possible to force such a window into fullscreen? I don't
> care if it needs to be done manually. For example, is it
> possible to have a program that takes whatever window is
> currently on top/in focus and makes it fullscreen?
>
Yes, by giving hints to window manager. This can be achieved by setting
_NET_WM_STATE to _NET_WM_STATE_FULLSCREEN.
Xlib example :
----- 8< ----------------------------
Atom first, second;
first = XInternAtom(dpy, "_NET_WM_STATE", False);
second = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
XChangeProperty(dpy, win, first, XA_ATOM, 32,
PropModeReplace, (unsigned char *)&second, 1);
----- 8< ----------------------------
>
> - The windows don't show up in the task switcher. Is there some
> way of at least finding and bringing a window back up to the front
> via a program/command-line tool, perhaps matching on window title
> or other properties?
>
I think you need to set WM_CLASS property of the window to be the
program executable's name. This is done automatically by Gtk for it's
windows.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
// Tapani
- Previous message: dealing with non-GTK windows
- Next message: dealing with non-GTK windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
