CVS: rdesktop ewmhints.c,1.9,1.10
Peter Åstrand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17046
Modified Files:
ewmhints.c
Log Message:
Updated URL to EWMH spec.
Changed copyright, it's 2005 now.
Added (disabled) skel for sending _NET_MOVERESIZE_WINDOW.
Index: ewmhints.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/ewmhints.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ewmhints.c 3 Aug 2005 10:56:16 -0000 1.9
--- ewmhints.c 12 Sep 2005 12:36:45 -0000 1.10
***************
*** 3,9 ****
Support functions for Extended Window Manager Hints,
! http://www.freedesktop.org/standards/wm-spec.html
! Copyright (C) Peter Astrand <[email protected]> 2003
This program is free software; you can redistribute it and/or modify
--- 3,9 ----
Support functions for Extended Window Manager Hints,
! http://www.freedesktop.org/wiki/Standards_2fwm_2dspec
! Copyright (C) Peter Astrand <[email protected]> 2005
This program is free software; you can redistribute it and/or modify
***************
*** 152,153 ****
--- 152,191 ----
}
+
+
+ #if 0
+
+ /* FIXME: _NET_MOVERESIZE_WINDOW is for pagers, not for
+ applications. We should implement _NET_WM_MOVERESIZE instead */
+
+ int
+ ewmh_net_moveresize_window(Window wnd, int x, int y, int width, int height)
+ {
+ Status status;
+ XEvent xevent;
+ Atom moveresize;
+
+ moveresize = XInternAtom(g_display, "_NET_MOVERESIZE_WINDOW", False);
+ if (!moveresize)
+ {
+ return -1;
+ }
+
+ xevent.type = ClientMessage;
+ xevent.xclient.window = wnd;
+ xevent.xclient.message_type = moveresize;
+ xevent.xclient.format = 32;
+ xevent.xclient.data.l[0] = StaticGravity | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11);
+ xevent.xclient.data.l[1] = x;
+ xevent.xclient.data.l[2] = y;
+ xevent.xclient.data.l[3] = width;
+ xevent.xclient.data.l[4] = height;
+
+ status = XSendEvent(g_display, DefaultRootWindow(g_display), False,
+ SubstructureNotifyMask | SubstructureRedirectMask, &xevent);
+ if (!status)
+ return -1;
+ return 0;
+ }
+
+ #endif
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf