mirror of
https://github.com/gryf/wmaker.git
synced 2026-06-19 00:55:24 +02:00
wmaker: add support for _NET_WM_MOVERESIZE
This patch adds support for _NET_WM_MOVERESIZE hint as defined in EWMH which allows a window without decorations to manage itself (moving/resizing). The purpose is to fix the issue mentioned at https://github.com/window-maker/wmaker/issues/20 Tested with VS Code, Google Chrome, Steam and Discord. Specs are available at https://specifications.freedesktop.org/wm/1.5/ar01s04.html#id-1.5.4
This commit is contained in:
committed by
Carlos R. Mafra
parent
ef1a504898
commit
6d0953bc22
@@ -237,6 +237,12 @@ typedef struct WWindow {
|
||||
int cmap_window_no;
|
||||
Window *cmap_windows;
|
||||
|
||||
/* move/resize state for _NET_WM_MOVERESIZE support */
|
||||
struct {
|
||||
int active; /* 1 if move/resize is in progress */
|
||||
int resize_edge; /* which edge for resize (0-7) */
|
||||
} moveresize;
|
||||
|
||||
/* protocols */
|
||||
WProtocols protocols; /* accepted WM_PROTOCOLS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user