Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
83fd17f2
Commit
83fd17f2
authored
Oct 31, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Set the WM_STATE_ABOVE hint on topmost windows.
parent
c183a9e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
winpos.c
dlls/winex11.drv/winpos.c
+3
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-0
No files found.
dlls/winex11.drv/winpos.c
View file @
83fd17f2
...
...
@@ -181,6 +181,7 @@ static void update_wm_states( Display *display, struct x11drv_win_data *data, BO
static
const
unsigned
int
state_atoms
[
NB_WM_STATES
]
=
{
XATOM__NET_WM_STATE_FULLSCREEN
,
XATOM__NET_WM_STATE_ABOVE
,
XATOM__NET_WM_STATE_SKIP_PAGER
,
XATOM__NET_WM_STATE_SKIP_TASKBAR
};
...
...
@@ -195,6 +196,8 @@ static void update_wm_states( Display *display, struct x11drv_win_data *data, BO
new_state
|=
(
1
<<
WM_STATE_FULLSCREEN
);
ex_style
=
GetWindowLongW
(
data
->
hwnd
,
GWL_EXSTYLE
);
if
(
ex_style
&
WS_EX_TOPMOST
)
new_state
|=
(
1
<<
WM_STATE_ABOVE
);
if
(
ex_style
&
WS_EX_TOOLWINDOW
)
new_state
|=
(
1
<<
WM_STATE_SKIP_TASKBAR
)
|
(
1
<<
WM_STATE_SKIP_PAGER
);
...
...
dlls/winex11.drv/x11drv.h
View file @
83fd17f2
...
...
@@ -578,6 +578,7 @@ enum x11drv_atoms
XATOM__NET_WM_PID
,
XATOM__NET_WM_PING
,
XATOM__NET_WM_STATE
,
XATOM__NET_WM_STATE_ABOVE
,
XATOM__NET_WM_STATE_FULLSCREEN
,
XATOM__NET_WM_STATE_SKIP_PAGER
,
XATOM__NET_WM_STATE_SKIP_TASKBAR
,
...
...
@@ -649,6 +650,7 @@ enum x11drv_window_messages
enum
x11drv_wm_state
{
WM_STATE_FULLSCREEN
,
WM_STATE_ABOVE
,
WM_STATE_SKIP_PAGER
,
WM_STATE_SKIP_TASKBAR
,
NB_WM_STATES
...
...
dlls/winex11.drv/x11drv_main.c
View file @
83fd17f2
...
...
@@ -135,6 +135,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"_NET_WM_PID"
,
"_NET_WM_PING"
,
"_NET_WM_STATE"
,
"_NET_WM_STATE_ABOVE"
,
"_NET_WM_STATE_FULLSCREEN"
,
"_NET_WM_STATE_SKIP_PAGER"
,
"_NET_WM_STATE_SKIP_TASKBAR"
,
...
...
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