diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-10 11:01:03 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-10 11:01:03 +0200 |
| commit | 96819c8ab9038fd38199fbc98b334dbd74453a91 (patch) | |
| tree | cbf2da26b5a94439eeaf3e97aad0c3a18a670a30 /src/events/Windows.cpp | |
| parent | ddab8e60dcbb56eb690c72cedcba1ab95f0284e4 (diff) | |
Fix GDK window extents mouse offset
kind of...? Should work more or less
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index e9e81ab3..88c1d897 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -352,3 +352,8 @@ void Events::listener_newXDGSurface(wl_listener* listener, void* data) { PNEWWINDOW->hyprListener_unmapWindow.initCallback(&XDGSURFACE->events.unmap, &Events::listener_unmapWindow, PNEWWINDOW, "XDG Window"); PNEWWINDOW->hyprListener_destroyWindow.initCallback(&XDGSURFACE->events.destroy, &Events::listener_destroyWindow, PNEWWINDOW, "XDG Window"); } + +void Events::listener_NewXDGDeco(wl_listener* listener, void* data) { + const auto WLRDECO = (wlr_xdg_toplevel_decoration_v1*)data; + wlr_xdg_toplevel_decoration_v1_set_mode(WLRDECO, WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); +} |
