diff gui/wm/ws.h @ 33998:ca20e4098c1d

Preserve x and y position of a double-size window if possible. Only change position in an evDoubleSize event if necessary. Do so by "dragging" the window towards the upper left if it no longer fits into the screen. Add a new function wsMoveWindowWithin() to accomplish this.
author ib
date Thu, 08 Sep 2011 15:31:25 +0000
parents 57d711d3dcca
children 3cf824f66821
line wrap: on
line diff
--- a/gui/wm/ws.h	Thu Sep 08 14:00:12 2011 +0000
+++ b/gui/wm/ws.h	Thu Sep 08 15:31:25 2011 +0000
@@ -230,6 +230,7 @@
 void wsCreateWindow(wsTWindow *win, int X, int Y, int wX, int hY, int bW, int cV, unsigned char D, char *label);
 void wsDestroyWindow(wsTWindow *win);
 void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y);
+void wsMoveWindowWithin(wsTWindow *win, Bool abs, int x, int y);
 void wsResizeWindow(wsTWindow *win, int sx, int sy);
 void wsIconify(wsTWindow win);
 void wsRaiseWindowTop(Display *dsp, Window win);