Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0ac89c18
Commit
0ac89c18
authored
Jan 18, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: do not follow --x11-display anymore
(Refer to the previous commit for rationale)
parent
7a6342fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.cpp
+1
-3
modules/gui/skins2/x11/x11_display.hpp
modules/gui/skins2/x11/x11_display.hpp
+1
-4
No files found.
modules/gui/skins2/x11/x11_display.cpp
View file @
0ac89c18
...
@@ -59,9 +59,8 @@ type X11Display::blendPixel(type v,type r, type g, type b, type a) const
...
@@ -59,9 +59,8 @@ type X11Display::blendPixel(type v,type r, type g, type b, type a) const
X11Display
::
X11Display
(
intf_thread_t
*
pIntf
)
:
SkinObject
(
pIntf
),
X11Display
::
X11Display
(
intf_thread_t
*
pIntf
)
:
SkinObject
(
pIntf
),
m_mainWindow
(
0
),
m_gc
(
NULL
),
m_colormap
(
0
)
m_mainWindow
(
0
),
m_gc
(
NULL
),
m_colormap
(
0
)
{
{
m_psz_display
=
var_CreateGetNonEmptyString
(
pIntf
,
"x11-display"
);
// Open a connection to the X Server
// Open a connection to the X Server
m_pDisplay
=
XOpenDisplay
(
m_psz_display
);
m_pDisplay
=
XOpenDisplay
(
NULL
);
if
(
m_pDisplay
==
NULL
)
if
(
m_pDisplay
==
NULL
)
{
{
MSG_ERR
(
"Cannot open display"
);
MSG_ERR
(
"Cannot open display"
);
...
@@ -285,7 +284,6 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
...
@@ -285,7 +284,6 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
X11Display
::~
X11Display
()
X11Display
::~
X11Display
()
{
{
free
(
m_psz_display
);
if
(
m_mainWindow
)
XDestroyWindow
(
m_pDisplay
,
m_mainWindow
);
if
(
m_mainWindow
)
XDestroyWindow
(
m_pDisplay
,
m_mainWindow
);
if
(
m_gc
)
XFreeGC
(
m_pDisplay
,
m_gc
);
if
(
m_gc
)
XFreeGC
(
m_pDisplay
,
m_gc
);
if
(
m_colormap
)
XFreeColormap
(
m_pDisplay
,
m_colormap
);
if
(
m_colormap
)
XFreeColormap
(
m_pDisplay
,
m_colormap
);
...
...
modules/gui/skins2/x11/x11_display.hpp
View file @
0ac89c18
...
@@ -84,8 +84,7 @@ public:
...
@@ -84,8 +84,7 @@ public:
Window
getMainWindow
()
const
{
return
m_mainWindow
;
}
Window
getMainWindow
()
const
{
return
m_mainWindow
;
}
/// Get the x11_display string (to be freed by caller)
/// Get the x11_display string (to be freed by caller)
char
*
getX11Display
()
char
*
getX11Display
()
{
return
NULL
;
}
{
return
(
m_psz_display
?
strdup
(
m_psz_display
)
:
NULL
);
}
/// EWMH spec
/// EWMH spec
Atom
m_net_wm_supported
;
Atom
m_net_wm_supported
;
...
@@ -102,8 +101,6 @@ public:
...
@@ -102,8 +101,6 @@ public:
void
testEWMH
();
void
testEWMH
();
private:
private:
/// x11-display (as a character string)
char
*
m_psz_display
;
/// Dummy parent window for the task bar
/// Dummy parent window for the task bar
Window
m_mainWindow
;
Window
m_mainWindow
;
/// Display parameters
/// Display parameters
...
...
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