Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7ebb8a7e
Commit
7ebb8a7e
authored
Oct 19, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tried to implement on-top windows on X11, but doesn't work for me :(
parent
65be6620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
modules/gui/skins/x11/x11_window.cpp
modules/gui/skins/x11/x11_window.cpp
+34
-1
No files found.
modules/gui/skins/x11/x11_window.cpp
View file @
7ebb8a7e
...
...
@@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.2
7 2003/06/22 13:06:23
asmax Exp $
* $Id: x11_window.cpp,v 1.2
8 2003/10/19 20:05:56
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -172,6 +172,39 @@ X11Window::~X11Window()
XUNLOCK
;
}
//---------------------------------------------------------------------------
void
X11Window
::
ToggleOnTop
()
{
XEvent
ev
;
ev
.
type
=
ClientMessage
;
ev
.
xclient
.
display
=
display
;
ev
.
xclient
.
window
=
Wnd
;
ev
.
xclient
.
serial
=
0
;
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
[
2
]
=
0
;
ev
.
xclient
.
data
.
l
[
3
]
=
0
;
ev
.
xclient
.
data
.
l
[
4
]
=
0
;
if
(
!
p_intf
->
p_sys
->
b_on_top
)
{
// Set the window on top
ev
.
xclient
.
data
.
l
[
0
]
=
1
;
// _NET_WM_STATE_ADD
}
else
{
// Set the window not on top
ev
.
xclient
.
data
.
l
[
0
]
=
0
;
// _NET_WM_STATE_REMOVE
}
XLOCK
;
XSendEvent
(
display
,
DefaultRootWindow
(
display
),
False
,
SubstructureRedirectMask
|
SubstructureNotifyMask
,
&
ev
);
XUNLOCK
;
}
//---------------------------------------------------------------------------
void
X11Window
::
OSShow
(
bool
show
)
{
XLOCK
;
...
...
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