diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-03 18:19:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-03 18:19:24 +0200 |
commit | c4d4d84ac5d8edb03c7b0056aa3cc181acc4eb1e (patch) | |
tree | 5d776248495c469c30556708ad7d3531756ec629 /src | |
parent | a2e9e999018f021134129b24fb941c485e6c44b6 (diff) |
Remove unnecessary code
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main.cpp b/src/main.cpp index c50149d..7c558fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,16 +73,6 @@ static Bool set_window_wm_state(Display *display, Window window, Atom atom) { return True; } -static Bool make_window_always_on_top(Display* display, Window window) { - Atom net_wm_state_above_atom = XInternAtom(display, "_NET_WM_STATE_ABOVE", False); - if(!net_wm_state_above_atom) { - fprintf(stderr, "Error: failed to find atom _NET_WM_STATE_ABOVE\n"); - return False; - } - - return set_window_wm_state(display, window, net_wm_state_above_atom); -} - static Bool make_window_sticky(Display* display, Window window) { Atom net_wm_state_sticky_atom = XInternAtom(display, "_NET_WM_STATE_STICKY", False); if(!net_wm_state_sticky_atom) { @@ -262,7 +252,6 @@ int main(int argc, char **argv) { window.set_visible(true); Display *display = (Display*)mgl_get_context()->connection; - make_window_always_on_top(display, window.get_system_handle()); make_window_sticky(display, window.get_system_handle()); const int slide_window_start_x = win->monitors[0].size.x; |