Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
11801cf4
Commit
11801cf4
authored
Jan 02, 2023
by
Luca Bacci
Committed by
Jehan
Jan 24, 2023
Browse files
Use SetWindowsHookExW ()
parent
08142062
Changes
1
Hide whitespace changes
Inline
Side-by-side
libgimpwidgets/gimppickbutton-win32.c
View file @
11801cf4
...
...
@@ -493,7 +493,7 @@ ensure_mouse_hook (void)
{
if
(
!
mouse_hook
)
{
mouse_hook
=
SetWindowsHookEx
(
WH_MOUSE_LL
,
mouse_procedure
,
this_module
(),
0
);
mouse_hook
=
SetWindowsHookEx
W
(
WH_MOUSE_LL
,
mouse_procedure
,
this_module
(),
0
);
if
(
!
mouse_hook
)
{
g_warning
(
"SetWindowsHookEx failed with error code %u"
,
...
...
@@ -558,7 +558,7 @@ ensure_keyboard_hook (void)
{
if
(
!
keyboard_hook
)
{
keyboard_hook
=
SetWindowsHookEx
(
WH_KEYBOARD_LL
,
keyboard_procedure
,
this_module
(),
0
);
keyboard_hook
=
SetWindowsHookEx
W
(
WH_KEYBOARD_LL
,
keyboard_procedure
,
this_module
(),
0
);
if
(
!
keyboard_hook
)
{
g_warning
(
"SetWindowsHookEx failed with error code %u"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment