Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
dapetcu21 committed Nov 21, 2019
1 parent 2c265b0 commit 9e54a68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion defos/src/defos_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static Atom NET_WM_ACTION_MAXIMIZE_HORZ;
static Atom NET_WM_ACTION_MAXIMIZE_VERT;
static Atom NET_WM_ACTION_MINIMIZE;
static Atom NET_FRAME_EXTENTS;
static Atom NET_ACTIVE_WINDOW;

struct CustomCursor {
Cursor cursor;
Expand Down Expand Up @@ -96,6 +97,7 @@ void defos_init()
NET_WM_ACTION_MAXIMIZE_HORZ = XATOM("_NET_WM_ACTION_MAXIMIZE_HORZ");
NET_WM_ACTION_MAXIMIZE_VERT = XATOM("_NET_WM_ACTION_MAXIMIZE_VERT");
NET_FRAME_EXTENTS = XATOM("_NET_FRAME_EXTENTS");
NET_ACTIVE_WINDOW = XATOM("_NET_ACTIVE_WINDOW");

resize_locked = false;
is_cursor_visible = true;
Expand Down Expand Up @@ -331,7 +333,7 @@ void defos_minimize()
void defos_activate()
{
send_message(win,
_NET_ACTIVE_WINDOW,
NET_ACTIVE_WINDOW,
1,
1,
0,
Expand Down

0 comments on commit 9e54a68

Please sign in to comment.