Skip to content

Commit

Permalink
callbacks: change '!' in comparison to '!='
Browse files Browse the repository at this point in the history
Closes #188
  • Loading branch information
pascal-niklaus committed Feb 25, 2024
1 parent c5d1794 commit 2446a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void on_device_removed (GdkDeviceManager *device_manager,
{
GromitData *data = (GromitData *) user_data;

if(!gdk_device_get_device_type(device) == GDK_DEVICE_TYPE_MASTER
if(gdk_device_get_device_type(device) != GDK_DEVICE_TYPE_MASTER
|| gdk_device_get_n_axes(device) < 2)
return;

Expand All @@ -591,7 +591,7 @@ void on_device_added (GdkDeviceManager *device_manager,
{
GromitData *data = (GromitData *) user_data;

if(!gdk_device_get_device_type(device) == GDK_DEVICE_TYPE_MASTER
if(gdk_device_get_device_type(device) != GDK_DEVICE_TYPE_MASTER
|| gdk_device_get_n_axes(device) < 2)
return;

Expand Down

0 comments on commit 2446a4f

Please sign in to comment.