Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c2dc6f3e
Commit
c2dc6f3e
authored
Oct 13, 2015
by
Jactry Zeng
Committed by
Alexandre Julliard
Oct 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Implement FlashWindowEx.
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b007a98e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
window.c
dlls/winex11.drv/window.c
+29
-0
winex11.drv.spec
dlls/winex11.drv/winex11.drv.spec
+1
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-0
No files found.
dlls/winex11.drv/window.c
View file @
c2dc6f3e
...
...
@@ -2767,3 +2767,32 @@ failed:
release_win_data
(
data
);
return
-
1
;
}
void
CDECL
X11DRV_FlashWindowEx
(
PFLASHWINFO
pfinfo
)
{
struct
x11drv_win_data
*
data
=
get_win_data
(
pfinfo
->
hwnd
);
XEvent
xev
;
if
(
!
data
)
return
;
if
(
data
->
mapped
)
{
xev
.
type
=
ClientMessage
;
xev
.
xclient
.
window
=
data
->
whole_window
;
xev
.
xclient
.
message_type
=
x11drv_atom
(
_NET_WM_STATE
);
xev
.
xclient
.
serial
=
0
;
xev
.
xclient
.
display
=
data
->
display
;
xev
.
xclient
.
send_event
=
True
;
xev
.
xclient
.
format
=
32
;
xev
.
xclient
.
data
.
l
[
0
]
=
pfinfo
->
dwFlags
?
_NET_WM_STATE_ADD
:
_NET_WM_STATE_REMOVE
;
xev
.
xclient
.
data
.
l
[
1
]
=
x11drv_atom
(
_NET_WM_STATE_DEMANDS_ATTENTION
);
xev
.
xclient
.
data
.
l
[
2
]
=
0
;
xev
.
xclient
.
data
.
l
[
3
]
=
1
;
xev
.
xclient
.
data
.
l
[
4
]
=
0
;
XSendEvent
(
data
->
display
,
DefaultRootWindow
(
data
->
display
),
False
,
SubstructureNotifyMask
,
&
xev
);
}
release_win_data
(
data
);
}
dlls/winex11.drv/winex11.drv.spec
View file @
c2dc6f3e
...
...
@@ -30,6 +30,7 @@
@ cdecl EmptyClipboard() X11DRV_EmptyClipboard
@ cdecl EndClipboardUpdate() X11DRV_EndClipboardUpdate
@ cdecl EnumClipboardFormats(long) X11DRV_EnumClipboardFormats
@ cdecl FlashWindowEx(ptr) X11DRV_FlashWindowEx
@ cdecl GetClipboardData(long) X11DRV_GetClipboardData
@ cdecl GetDC(long long long ptr ptr long) X11DRV_GetDC
@ cdecl IsClipboardFormatAvailable(long) X11DRV_IsClipboardFormatAvailable
...
...
dlls/winex11.drv/x11drv.h
View file @
c2dc6f3e
...
...
@@ -421,6 +421,7 @@ enum x11drv_atoms
XATOM__NET_WM_PING
,
XATOM__NET_WM_STATE
,
XATOM__NET_WM_STATE_ABOVE
,
XATOM__NET_WM_STATE_DEMANDS_ATTENTION
,
XATOM__NET_WM_STATE_FULLSCREEN
,
XATOM__NET_WM_STATE_MAXIMIZED_HORZ
,
XATOM__NET_WM_STATE_MAXIMIZED_VERT
,
...
...
dlls/winex11.drv/x11drv_main.c
View file @
c2dc6f3e
...
...
@@ -138,6 +138,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"_NET_WM_PING"
,
"_NET_WM_STATE"
,
"_NET_WM_STATE_ABOVE"
,
"_NET_WM_STATE_DEMANDS_ATTENTION"
,
"_NET_WM_STATE_FULLSCREEN"
,
"_NET_WM_STATE_MAXIMIZED_HORZ"
,
"_NET_WM_STATE_MAXIMIZED_VERT"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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