mirror of
https://github.com/brl/mutter.git
synced 2025-01-07 10:12:14 +00:00
cleanup: Avoid using None on non-x11 only code paths
Just replace it with it actual value Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3606>
This commit is contained in:
parent
68d5b5ea50
commit
11691b107c
@ -801,7 +801,7 @@ rebuild_binding_table (MetaKeyBindingManager *keys,
|
||||
{
|
||||
MetaKeyCombo *combo = tmp->data;
|
||||
|
||||
if (combo && (combo->keysym != None || combo->keycode != 0))
|
||||
if (combo && (combo->keysym != 0 || combo->keycode != 0))
|
||||
{
|
||||
MetaKeyHandler *handler = HANDLER (pref->name);
|
||||
|
||||
@ -824,7 +824,7 @@ rebuild_binding_table (MetaKeyBindingManager *keys,
|
||||
while (g)
|
||||
{
|
||||
MetaKeyGrab *grab = (MetaKeyGrab*)g->data;
|
||||
if (grab->combo.keysym != None || grab->combo.keycode != 0)
|
||||
if (grab->combo.keysym != 0 || grab->combo.keycode != 0)
|
||||
{
|
||||
MetaKeyHandler *handler = HANDLER ("external-grab");
|
||||
|
||||
|
@ -1261,7 +1261,7 @@ void
|
||||
meta_stack_tracker_lower (MetaStackTracker *tracker,
|
||||
guint64 window)
|
||||
{
|
||||
meta_stack_tracker_raise_above (tracker, window, None);
|
||||
meta_stack_tracker_raise_above (tracker, window, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user