mirror of
https://github.com/0intro/wmii
synced 2024-11-24 22:59:45 +03:00
[menu] Don't set wimenu window override_redirect.
This commit is contained in:
parent
e5e64f3eb4
commit
9055d8e8a1
@ -27,13 +27,13 @@ void
|
|||||||
menu_init(void) {
|
menu_init(void) {
|
||||||
WinAttr wa;
|
WinAttr wa;
|
||||||
|
|
||||||
wa.override_redirect = 1;
|
|
||||||
wa.background_pixmap = ParentRelative;
|
|
||||||
wa.event_mask = ExposureMask | KeyPressMask;
|
wa.event_mask = ExposureMask | KeyPressMask;
|
||||||
barwin = createwindow(&scr.root, Rect(-1, -1, 1, 1), scr.depth, InputOutput,
|
barwin = createwindow(&scr.root, Rect(-1, -1, 1, 1), scr.depth, InputOutput,
|
||||||
&wa, CWOverrideRedirect
|
&wa, CWEventMask);
|
||||||
| CWBackPixmap
|
|
||||||
| CWEventMask);
|
changeprop_long(barwin, Net("WM_WINDOW_TYPE"), "ATOM",
|
||||||
|
(long[]){ TYPE("MENU") }, 1);
|
||||||
|
|
||||||
sethandler(barwin, &handlers);
|
sethandler(barwin, &handlers);
|
||||||
mapwin(barwin);
|
mapwin(barwin);
|
||||||
|
|
||||||
|
@ -6,15 +6,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "fns.h"
|
#include "fns.h"
|
||||||
|
|
||||||
#define Net(x) ("_NET_" x)
|
|
||||||
#define Action(x) ("_NET_WM_ACTION_" x)
|
|
||||||
#define State(x) ("_NET_WM_STATE_" x)
|
|
||||||
#define Type(x) ("_NET_WM_WINDOW_TYPE_" x)
|
|
||||||
#define NET(x) xatom(Net(x))
|
|
||||||
#define ACTION(x) xatom(Action(x))
|
|
||||||
#define STATE(x) xatom(State(x))
|
|
||||||
#define TYPE(x) xatom(Type(x))
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Left, Right, Top, Bottom,
|
Left, Right, Top, Bottom,
|
||||||
LeftMin, LeftMax,
|
LeftMin, LeftMax,
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
|
|
||||||
#define Net(x) ("_NET_" x)
|
|
||||||
#define Action(x) ("_NET_WM_ACTION_" x)
|
|
||||||
#define State(x) ("_NET_WM_STATE_" x)
|
|
||||||
#define Type(x) ("_NET_WM_WINDOW_TYPE_" x)
|
|
||||||
#define NET(x) xatom(Net(x))
|
|
||||||
#define ACTION(x) xatom(Action(x))
|
|
||||||
#define STATE(x) xatom(State(x))
|
|
||||||
#define TYPE(x) xatom(Type(x))
|
|
||||||
|
|
||||||
void cleanup(Selection*);
|
void cleanup(Selection*);
|
||||||
Client* client_find(Window*);
|
Client* client_find(Window*);
|
||||||
bool client_hasmessage(Client*);
|
bool client_hasmessage(Client*);
|
||||||
|
@ -13,15 +13,6 @@ static void ewmh_setstate(Client*, Atom, int);
|
|||||||
static Handlers client_handlers;
|
static Handlers client_handlers;
|
||||||
static Handlers root_handlers;
|
static Handlers root_handlers;
|
||||||
|
|
||||||
#define Net(x) ("_NET_" x)
|
|
||||||
#define Action(x) Net("WM_ACTION_" x)
|
|
||||||
#define State(x) Net("WM_STATE_" x)
|
|
||||||
#define Type(x) Net("WM_WINDOW_TYPE_" x)
|
|
||||||
#define NET(x) xatom(Net(x))
|
|
||||||
#define ACTION(x) xatom(Action(x))
|
|
||||||
#define STATE(x) xatom(State(x))
|
|
||||||
#define TYPE(x) xatom(Type(x))
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ewmh_init(void) {
|
ewmh_init(void) {
|
||||||
char myname[] = "wmii";
|
char myname[] = "wmii";
|
||||||
|
@ -6,6 +6,15 @@ extern Visual* render_visual;
|
|||||||
|
|
||||||
extern void init_screens(void);
|
extern void init_screens(void);
|
||||||
|
|
||||||
|
#define Net(x) ("_NET_" x)
|
||||||
|
#define Action(x) ("_NET_WM_ACTION_" x)
|
||||||
|
#define State(x) ("_NET_WM_STATE_" x)
|
||||||
|
#define Type(x) ("_NET_WM_WINDOW_TYPE_" x)
|
||||||
|
#define NET(x) xatom(Net(x))
|
||||||
|
#define ACTION(x) xatom(Action(x))
|
||||||
|
#define STATE(x) xatom(State(x))
|
||||||
|
#define TYPE(x) xatom(Type(x))
|
||||||
|
|
||||||
/* printevent.c */
|
/* printevent.c */
|
||||||
int fmtevent(Fmt*);
|
int fmtevent(Fmt*);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user