mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
back/ericwa-experimental: remove some unused stuff from _gswindow_device_t
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34150 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cd92e78ff5
commit
6cc8506bc4
2 changed files with 5 additions and 12 deletions
|
@ -74,12 +74,6 @@ typedef struct {
|
|||
|
||||
#define GSMaxWMProtocols 5
|
||||
|
||||
/* Graphics Driver protocol. Setup in [NSGraphicsContext-contextDevice:] */
|
||||
enum {
|
||||
GDriverHandlesBacking = 1,
|
||||
GDriverHandlesExpose = 2
|
||||
};
|
||||
|
||||
typedef struct _gswindow_device_t {
|
||||
Display *display; /* Display this window is on */
|
||||
Window ident; /* Window handle */
|
||||
|
@ -88,7 +82,6 @@ typedef struct _gswindow_device_t {
|
|||
int screen; /* Screeen this window is on */
|
||||
long number; /* Globally unique identifier */
|
||||
unsigned int depth; /* Window depth */
|
||||
unsigned int border; /* Border size */
|
||||
int map_state; /* X map state */
|
||||
int visibility; /* X visibility */
|
||||
int wm_state; /* X WM state */
|
||||
|
@ -103,9 +96,6 @@ typedef struct _gswindow_device_t {
|
|||
XSizeHints siz_hints;
|
||||
GNUstepWMAttributes win_attrs;
|
||||
XSetWindowAttributes xwn_attrs;
|
||||
int xoff;
|
||||
int yoff;
|
||||
int boff;
|
||||
Atom protocols[GSMaxWMProtocols];
|
||||
int numProtocols;
|
||||
XIC ic;
|
||||
|
|
|
@ -874,10 +874,12 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
window->map_state = IsViewable;
|
||||
window->visibility = -1;
|
||||
window->wm_state = NormalState;
|
||||
|
||||
unsigned int border;
|
||||
if (window->ident)
|
||||
XGetGeometry(dpy, window->ident, &window->root,
|
||||
&x, &y, &width, &height,
|
||||
&window->border, &window->depth);
|
||||
&border, &window->depth);
|
||||
|
||||
window->xframe = NSMakeRect(x, y, width, height);
|
||||
NSMapInsert (windowtags, (void*)(uintptr_t)window->number, window);
|
||||
|
@ -2247,9 +2249,10 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
|
||||
NSDebugLLog(@"XGTrace", @"DPScurrentwindowbounds: %d", win);
|
||||
|
||||
unsigned int border;
|
||||
// get the current xframe of the window
|
||||
XGetGeometry(dpy, window->ident, &window->root,
|
||||
&x, &y, &width, &height, &window->border, &window->depth);
|
||||
&x, &y, &width, &height, &border, &window->depth);
|
||||
window->xframe = NSMakeRect(x, y, width, height);
|
||||
|
||||
screenHeight = DisplayHeight(dpy, window->screen);
|
||||
|
|
Loading…
Reference in a new issue