Skip to content

Commit

Permalink
set override redirect attribute on window creating
Browse files Browse the repository at this point in the history
  • Loading branch information
jevank committed Apr 30, 2020
1 parent 3ed85ac commit d482e69
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gui-daemon/xside.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ static Window mkwindow(Ghandles * g, struct windowdata *vm_window)
XSizeHints my_size_hints; /* hints for the window manager */
Atom atom_label;
int i;
XSetWindowAttributes attr;

my_size_hints.flags = PSize;
my_size_hints.width = vm_window->width;
Expand All @@ -319,13 +320,15 @@ static Window mkwindow(Ghandles * g, struct windowdata *vm_window)
parent = vm_window->parent->local_winid;
else
parent = g->root_win;
// we will set override_redirect later, if needed
child_win = XCreateSimpleWindow(g->display, parent,
attr.override_redirect = vm_window->override_redirect;
child_win = XCreateWindow(g->display, parent,
vm_window->x, vm_window->y,
vm_window->width,
vm_window->height, 0,
BlackPixel(g->display, g->screen),
WhitePixel(g->display, g->screen));
CopyFromParent,
CopyFromParent,
CopyFromParent,
CWOverrideRedirect, &attr);
/* pass my size hints to the window manager, along with window
and icon names */
(void) XSetStandardProperties(g->display, child_win,
Expand Down

0 comments on commit d482e69

Please sign in to comment.