diff options
author | lukefromdc <[email protected]> | 2024-08-14 00:48:28 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2024-09-03 20:17:51 -0400 |
commit | ff6132c901d1d8e7e74e7d39de8e70ede98c4e94 (patch) | |
tree | 2673e2b92c9daecf502eb250accd45506b739f1d | |
parent | 421c24b979198a7a7b54f8e89d58dc1bb80c8df7 (diff) | |
download | caja-fix-wayland-csd-window-move.tar.bz2 caja-fix-wayland-csd-window-move.tar.xz |
wayland: ensure windows can be moved if compositor is using CSDfix-wayland-csd-window-move
*Do not use G_OBJECT_CLASS (class)->constructed
*We don't seem to need it anymore and it breaks dragging windows with the titlebar or resizing with the mouse in wayland
-rw-r--r-- | src/caja-window.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index a67a5ee4..2191a7ed 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -632,17 +632,6 @@ caja_window_set_initial_window_geometry (CajaWindow *window) } static void -caja_window_constructed (GObject *self) -{ - CajaWindow *window; - - window = CAJA_WINDOW (self); - - caja_window_initialize_bookmarks_menu (window); - caja_window_set_initial_window_geometry (window); -} - -static void caja_window_set_property (GObject *object, guint arg_id, const GValue *value, @@ -742,6 +731,12 @@ caja_window_constructor (GType type, slot = caja_window_open_slot (window->details->active_pane, 0); caja_window_set_active_slot (window, slot); + /*We can now do this here instead of in a separate constructed function + *and we need to because the separate constructed function causes the + *window to be un-draggable/un-resizable with the mouse in wayland + */ + caja_window_initialize_bookmarks_menu (window); + caja_window_set_initial_window_geometry (window); return object; } @@ -2170,7 +2165,6 @@ caja_window_class_init (CajaWindowClass *class) GtkBindingSet *binding_set; G_OBJECT_CLASS (class)->constructor = caja_window_constructor; - G_OBJECT_CLASS (class)->constructed = caja_window_constructed; G_OBJECT_CLASS (class)->get_property = caja_window_get_property; G_OBJECT_CLASS (class)->set_property = caja_window_set_property; G_OBJECT_CLASS (class)->finalize = caja_window_finalize; |