mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 09:21:26 +00:00
Changes to allow window type to be overriden by theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/theme_window_override@35135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a07a28957d
commit
d4c29acec6
1 changed files with 59 additions and 9 deletions
|
@ -790,7 +790,21 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
window->xwn_attrs.colormap = context->cmap;
|
||||
window->xwn_attrs.save_under = False;
|
||||
window->xwn_attrs.override_redirect = False;
|
||||
|
||||
window->ident = [self createWindowWithDisplay: dpy
|
||||
parent: window->root
|
||||
X: NSMinX(frame)
|
||||
Y: NSMinY(frame)
|
||||
width: NSWidth(frame)
|
||||
height: NSHeight(frame)
|
||||
borderWidth: 0
|
||||
depth: context->depth
|
||||
class: CopyFromParent
|
||||
visual: context->visual
|
||||
valuemask: (CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect)
|
||||
attributes: &window->xwn_attrs];
|
||||
|
||||
/*
|
||||
window->ident = XCreateWindow(dpy, window->root,
|
||||
NSMinX(frame), NSMinY(frame),
|
||||
NSWidth(frame), NSHeight(frame),
|
||||
|
@ -800,6 +814,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
context->visual,
|
||||
(CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect),
|
||||
&window->xwn_attrs);
|
||||
*/
|
||||
|
||||
/*
|
||||
* Mark this as a GNUstep app with the current application name.
|
||||
|
@ -1950,6 +1965,37 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
}
|
||||
}
|
||||
|
||||
// Create Window method...
|
||||
- (Window) createWindowWithDisplay: (Display *)disp
|
||||
parent: (Window)parent
|
||||
X: (int)x
|
||||
Y: (int)y
|
||||
width: (unsigned int)width
|
||||
height: (unsigned int)height
|
||||
borderWidth: (unsigned int)borderWidth
|
||||
depth: (int)depth
|
||||
class: (unsigned int)cls
|
||||
visual: (Visual *)visual
|
||||
valuemask: (unsigned long)valuemask
|
||||
attributes: (XSetWindowAttributes *)attrs
|
||||
{
|
||||
Window ident;
|
||||
ident = XCreateWindow(disp,
|
||||
parent,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
borderWidth,
|
||||
depth,
|
||||
cls,
|
||||
visual,
|
||||
valuemask,
|
||||
attrs);
|
||||
return ident;
|
||||
}
|
||||
// End create window method...
|
||||
|
||||
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
|
||||
: (int)screen
|
||||
{
|
||||
|
@ -2006,16 +2052,20 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
*/
|
||||
window->xwn_attrs.override_redirect = False;
|
||||
|
||||
window->ident = XCreateWindow(dpy, window->root,
|
||||
NSMinX(frame), NSMinY(frame),
|
||||
NSWidth(frame), NSHeight(frame),
|
||||
0,
|
||||
context->depth,
|
||||
CopyFromParent,
|
||||
context->visual,
|
||||
(CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect),
|
||||
&window->xwn_attrs);
|
||||
window->ident = [self createWindowWithDisplay: dpy
|
||||
parent: window->root
|
||||
X: NSMinX(frame)
|
||||
Y: NSMinY(frame)
|
||||
width: NSWidth(frame)
|
||||
height: NSHeight(frame)
|
||||
borderWidth: 0
|
||||
depth: context->depth
|
||||
class: CopyFromParent
|
||||
visual: context->visual
|
||||
valuemask: (CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect)
|
||||
attributes: &window->xwn_attrs];
|
||||
|
||||
|
||||
/*
|
||||
* Mark this as a GNUstep app with the current application name.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue