mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wmaker: Moved definition of WM-related XAtoms into the global variables structure
This commit is contained in:
committed by
Carlos R. Mafra
parent
32cebb1305
commit
ecfb2dc902
@@ -50,8 +50,6 @@
|
||||
#include "xinerama.h"
|
||||
#include "properties.h"
|
||||
|
||||
/* Global variables */
|
||||
extern Atom _XA_WM_DELETE_WINDOW;
|
||||
|
||||
/* Root Window Properties */
|
||||
static Atom net_supported;
|
||||
@@ -1405,7 +1403,8 @@ Bool wNETWMProcessClientMessage(XClientMessageEvent *event)
|
||||
} else if (event->message_type == net_close_window) {
|
||||
if (!WFLAGP(wwin, no_closable)) {
|
||||
if (wwin->protocols.DELETE_WINDOW)
|
||||
wClientSendProtocol(wwin, _XA_WM_DELETE_WINDOW, w_global.timestamp.last_event);
|
||||
wClientSendProtocol(wwin, w_global.atom.wm.delete_window,
|
||||
w_global.timestamp.last_event);
|
||||
}
|
||||
} else if (event->message_type == net_wm_state) {
|
||||
int maximized = wwin->flags.maximized;
|
||||
|
||||
Reference in New Issue
Block a user