mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
Fix 'comparison between signed and unsigned integer' compiler errors
This commit is contained in:
parent
d78de379cc
commit
7d7b859b40
@ -1491,7 +1491,7 @@ process_overlay_key (MetaDisplay *display,
|
||||
{
|
||||
if (display->overlay_key_only_pressed)
|
||||
{
|
||||
if (event->detail != display->overlay_key_combo.keycode)
|
||||
if (event->detail != (int)display->overlay_key_combo.keycode)
|
||||
{
|
||||
display->overlay_key_only_pressed = FALSE;
|
||||
|
||||
@ -1552,7 +1552,7 @@ process_overlay_key (MetaDisplay *display,
|
||||
return TRUE;
|
||||
}
|
||||
else if (event->evtype == XI_KeyPress &&
|
||||
event->detail == display->overlay_key_combo.keycode)
|
||||
event->detail == (int)display->overlay_key_combo.keycode)
|
||||
{
|
||||
display->overlay_key_only_pressed = TRUE;
|
||||
/* We keep the keyboard frozen - this allows us to use ReplayKeyboard
|
||||
|
@ -2137,13 +2137,13 @@ meta_prefs_get_window_binding (const char *name,
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
guint
|
||||
gint
|
||||
meta_prefs_get_mouse_button_resize (void)
|
||||
{
|
||||
return resize_with_right_button ? 3: 2;
|
||||
}
|
||||
|
||||
guint
|
||||
gint
|
||||
meta_prefs_get_mouse_button_menu (void)
|
||||
{
|
||||
return resize_with_right_button ? 2: 3;
|
||||
|
@ -86,8 +86,8 @@ void meta_prefs_override_preference_schema (const char *key,
|
||||
const char* meta_preference_to_string (MetaPreference pref);
|
||||
|
||||
MetaVirtualModifier meta_prefs_get_mouse_button_mods (void);
|
||||
guint meta_prefs_get_mouse_button_resize (void);
|
||||
guint meta_prefs_get_mouse_button_menu (void);
|
||||
gint meta_prefs_get_mouse_button_resize (void);
|
||||
gint meta_prefs_get_mouse_button_menu (void);
|
||||
GDesktopFocusMode meta_prefs_get_focus_mode (void);
|
||||
GDesktopFocusNewWindows meta_prefs_get_focus_new_windows (void);
|
||||
gboolean meta_prefs_get_attach_modal_dialogs (void);
|
||||
|
@ -50,7 +50,7 @@ struct _MetaUI
|
||||
MetaFrames *frames;
|
||||
|
||||
/* For double-click tracking */
|
||||
guint button_click_number;
|
||||
gint button_click_number;
|
||||
Window button_click_window;
|
||||
int button_click_x;
|
||||
int button_click_y;
|
||||
|
Loading…
Reference in New Issue
Block a user