win32: Stop using MODx modifiers

The win32 backend is using GDK_MOD2_MASK for AltGr,
so define GDK_MOD2_MASK locally to keep this working,
but remove any mention of GDK_MOD3_MASK,...,GDK_MOD5_MASK.
This commit is contained in:
Matthias Clasen 2020-04-06 15:13:00 -04:00
parent 7fa103717d
commit 25e9a54902
2 changed files with 4 additions and 3 deletions

View File

@ -72,6 +72,8 @@
#include <imm.h>
#define GDK_MOD2_MASK (1 << 4)
#ifndef XBUTTON1
#define XBUTTON1 1
#define XBUTTON2 2
@ -743,9 +745,6 @@ print_event_state (guint state)
CASE (CONTROL);
CASE (ALT);
CASE (MOD2);
CASE (MOD3);
CASE (MOD4);
CASE (MOD5);
CASE (BUTTON1);
CASE (BUTTON2);
CASE (BUTTON3);

View File

@ -38,6 +38,8 @@
#include "gdkkeysprivate.h"
#include "gdkwin32keys.h"
#define GDK_MOD2_MASK (1 << 4)
enum _GdkWin32KeyLevelState
{
GDK_WIN32_LEVEL_NONE = 0,