Problems with NET_WM_STATE_FULLSCREEN
Arwed von Merkatz
v.merkatz at gmx.net
Sun Oct 5 12:17:57 CEST 2003
On Sat, Oct 04, 2003 at 06:56:55PM +0200, Olivier Fourdan wrote:
> Hi,
>
> Ok, reading your mail again (sorry, I'm really sick today...), I've
> undertood what you meant...
>
> Use this instead:
>
> [...]
> 1047 clientCoordGravitate (c, APPLY, &wc.x, &wc.y);
> 1048 if (CLIENT_FLAG_TEST (c, CLIENT_FLAG_FULLSCREEN))
> 1049 {
> 1050 int cx, cy;
> 1051
> 1052 /* size request from fullscreen windows get fullscreen*/
> 1053
> 1054 cx = frameX (c) + (frameWidth (c) / 2);
> 1055 cy = frameY (c) + (frameHeight (c) / 2);
> 1056
> 1057 wc.x = MyDisplayX (cx, cy);
> 1058 wc.y = MyDisplayY (cx, cy);
> 1059 wc.width = MyDisplayWidth (dpy, screen, cx, cy);
> 1060 wc.height = MyDisplayHeight (dpy, screen, cx, cy);
> 1061
> 1062 ev->value_mask |= (CWX | CWY | CWWidth | CWHeight);
> 1063 }
> 1064 /* Clean up buggy requests that set all flags */
> [...]
>
>
> This one is Xinerama aware. This is what I shall commit.
>
> Cheers,
> Olivier.
>
Hi,
this works fine with gst-player, and looks a lot more thoughtfull than
my brute force method of setting the size :)
--
Arwed v. Merkatz
Grimoire Guru for video
Grimoire Guru for xfce
Sourcemage GNU/Linux
http://www.sourcemage.org
More information about the Xfce4-dev
mailing list