Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
ed1df1f7
Commit
ed1df1f7
authored
Oct 19, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins/x11/x11_window.cpp: try _NET_WM_STATE_STAYS_ON_TOP as well for KDE.
parent
f20d985a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/gui/skins/x11/x11_window.cpp
modules/gui/skins/x11/x11_window.cpp
+10
-3
No files found.
modules/gui/skins/x11/x11_window.cpp
View file @
ed1df1f7
...
...
@@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.2
8 2003/10/19 20:05:56 asmax
Exp $
* $Id: x11_window.cpp,v 1.2
9 2003/10/19 22:25:10 gbazin
Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -182,8 +182,7 @@ void X11Window::ToggleOnTop()
ev
.
xclient
.
send_event
=
True
;
ev
.
xclient
.
message_type
=
XInternAtom
(
display
,
"_NET_WM_STATE"
,
True
);
ev
.
xclient
.
format
=
32
;
ev
.
xclient
.
data
.
l
[
1
]
=
XInternAtom
(
display
,
"_NET_WM_STATE_ABOVE"
,
False
);
ev
.
xclient
.
data
.
l
[
1
]
=
XInternAtom
(
display
,
"_NET_WM_STATE_ABOVE"
,
False
);
ev
.
xclient
.
data
.
l
[
2
]
=
0
;
ev
.
xclient
.
data
.
l
[
3
]
=
0
;
ev
.
xclient
.
data
.
l
[
4
]
=
0
;
...
...
@@ -203,6 +202,14 @@ void X11Window::ToggleOnTop()
XSendEvent
(
display
,
DefaultRootWindow
(
display
),
False
,
SubstructureRedirectMask
|
SubstructureNotifyMask
,
&
ev
);
XUNLOCK
;
/* For KDE */
ev
.
xclient
.
data
.
l
[
1
]
=
XInternAtom
(
display
,
"_NET_WM_STATE_STAYS_ON_TOP"
,
False
);
XLOCK
;
XSendEvent
(
display
,
DefaultRootWindow
(
display
),
False
,
SubstructureRedirectMask
|
SubstructureNotifyMask
,
&
ev
);
XUNLOCK
;
}
//---------------------------------------------------------------------------
void
X11Window
::
OSShow
(
bool
show
)
...
...
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