|
@@ -28,9 +28,10 @@ |
|
|
|
|
|
|
|
|
static Cursor arrow; |
|
|
static Cursor arrow; |
|
|
static Cursor hand; |
|
|
static Cursor hand; |
|
|
|
|
|
|
|
|
static GC bgc; |
|
|
static GC bgc; |
|
|
|
|
|
|
|
|
|
|
|
Atom wm_delete_win; |
|
|
|
|
|
|
|
|
void win_set_sizehints(win_t *win) { |
|
|
void win_set_sizehints(win_t *win) { |
|
|
XSizeHints sizehints; |
|
|
XSizeHints sizehints; |
|
|
|
|
|
|
|
@@ -122,6 +123,9 @@ void win_open(win_t *win) { |
|
|
|
|
|
|
|
|
XMapWindow(e->dpy, win->xwin); |
|
|
XMapWindow(e->dpy, win->xwin); |
|
|
XFlush(e->dpy); |
|
|
XFlush(e->dpy); |
|
|
|
|
|
|
|
|
|
|
|
wm_delete_win = XInternAtom(e->dpy, "WM_DELETE_WINDOW", False); |
|
|
|
|
|
XSetWMProtocols(e->dpy, win->xwin, &wm_delete_win, 1); |
|
|
|
|
|
|
|
|
if (options->fullscreen) |
|
|
if (options->fullscreen) |
|
|
win_toggle_fullscreen(win); |
|
|
win_toggle_fullscreen(win); |
|
|