Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7fdd67a
)
do not initialize registry when display is unavailable
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Mon, 19 Jun 2017 08:16:20 +0000
(10:16 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.cpp
patch
|
blob
|
history
diff --git
a/src/wayland.cpp
b/src/wayland.cpp
index
c2f55fa
..
ce20978
100644
(file)
--- a/
src/wayland.cpp
+++ b/
src/wayland.cpp
@@
-22,7
+22,7
@@
display::display()
logdebug("wl::display ~display @ %p", d);
wl_display_disconnect(d);
})),
- r(std::make_unique<struct registry>(d.get())) {}
+ r(
!d ? nullptr :
std::make_unique<struct registry>(d.get())) {}
display::~display() {}