]> Dogcows Code - chaz/openbox/blobdiff - openbox/dock.c
add the PointerMotionHintMask everywhere, we dont need every mouse event
[chaz/openbox] / openbox / dock.c
index 53c791396a1d7254d89d885dc9cdfaba75e19c80..8433c260889cd637a1b283411d5f494bd3b553b7 100644 (file)
@@ -2,7 +2,7 @@
 
    dock.c for the Openbox window manager
    Copyright (c) 2006        Mikael Magnusson
-   Copyright (c) 2003        Ben Jansens
+   Copyright (c) 2003-2007   Dana Jansens
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ static void dock_app_grab_button(ObDockApp *app, gboolean grab)
         grab_button_full(config_dock_app_move_button,
                          config_dock_app_move_modifiers, app->icon_win,
                          ButtonPressMask | ButtonReleaseMask |
-                         ButtonMotionMask,
+                         ButtonMotionMask | PointerMotionHintMask,
                          GrabModeAsync, OB_CURSOR_MOVE);
     } else {
         ungrab_button(config_dock_app_move_button,
@@ -616,14 +616,14 @@ void dock_hide(gboolean hide)
     if (!hide) {
         if (dock->hidden && config_dock_hide) {
             ob_main_loop_timeout_add(ob_main_loop, config_dock_show_delay,
-                                 show_timeout, NULL, NULL);
+                                 show_timeout, NULL, g_direct_equal, NULL);
         } else if (!dock->hidden && config_dock_hide) {
             ob_main_loop_timeout_remove(ob_main_loop, hide_timeout);
         }
     } else {
         if (!dock->hidden && config_dock_hide) {
             ob_main_loop_timeout_add(ob_main_loop, config_dock_hide_delay,
-                                 hide_timeout, NULL, NULL);
+                                 hide_timeout, NULL, g_direct_equal, NULL);
         } else if (dock->hidden && config_dock_hide) {
             ob_main_loop_timeout_remove(ob_main_loop, show_timeout);
         }
This page took 0.024033 seconds and 4 git commands to generate.