[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 339/473: Set menu window type hint to DIALOG

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:58:29 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 752f89b80c1bc9f0c99bef67a2b22b2274f8d314
Author: Kernc <kerncece at gmail.com>
Date:   Tue Feb 11 21:26:00 2014 +0100

    Set menu window type hint to DIALOG
    
    Some tiling window managers, like e.g. i3, rely on window type
    hint to determine whether to tile or float the window.
    Normal windows are usually tiled, and dialogs are more
    convenient floating.
---
 panel-plugin/window.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp
index 83b9f75..dfbec43 100644
--- a/panel-plugin/window.cpp
+++ b/panel-plugin/window.cpp
@@ -59,6 +59,7 @@ Window::Window() :
 	gtk_window_set_decorated(m_window, false);
 	gtk_window_set_skip_taskbar_hint(m_window, true);
 	gtk_window_set_skip_pager_hint(m_window, true);
+	gtk_window_set_type_hint(m_window, GDK_WINDOW_TYPE_HINT_DIALOG);
 	gtk_window_stick(m_window);
 	gtk_widget_add_events(GTK_WIDGET(m_window), GDK_BUTTON_PRESS_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_STRUCTURE_MASK);
 	g_signal_connect_slot(m_window, "enter-notify-event", &Window::on_enter_notify_event, this);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list