Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KWin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Plasma
KWin
Commits
0c8c047d
Commit
0c8c047d
authored
Sep 30, 2017
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on tear-down of Workspace if run without X11 support
Much easier than expected.
parent
8ae37c42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
netinfo.cpp
netinfo.cpp
+3
-1
workspace.cpp
workspace.cpp
+4
-1
No files found.
netinfo.cpp
View file @
0c8c047d
...
...
@@ -129,7 +129,9 @@ RootInfo *RootInfo::create()
void
RootInfo
::
destroy
()
{
Q_ASSERT
(
s_self
);
if
(
!
s_self
)
{
return
;
}
xcb_window_t
supportWindow
=
s_self
->
supportWindow
();
delete
s_self
;
s_self
=
NULL
;
...
...
workspace.cpp
View file @
0c8c047d
...
...
@@ -512,7 +512,10 @@ Workspace::~Workspace()
Client
::
cleanupX11
();
for
(
UnmanagedList
::
iterator
it
=
unmanaged
.
begin
(),
end
=
unmanaged
.
end
();
it
!=
end
;
++
it
)
(
*
it
)
->
release
(
ReleaseReason
::
KWinShutsDown
);
xcb_delete_property
(
connection
(),
rootWindow
(),
atoms
->
kwin_running
);
if
(
auto
c
=
kwinApp
()
->
x11Connection
())
{
xcb_delete_property
(
c
,
kwinApp
()
->
x11RootWindow
(),
atoms
->
kwin_running
);
}
for
(
auto
it
=
deleted
.
begin
();
it
!=
deleted
.
end
();)
{
emit
deletedRemoved
(
*
it
);
...
...
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