projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f42930
)
Resize the shell when the mode is switched
author
Hardening
<rdp.effort@gmail.com>
Mon, 23 Sep 2013 22:45:53 +0000
(
00:45
+0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Sun, 29 Sep 2013 21:23:54 +0000
(14:23 -0700)
Resize the panel and the background when we're notified of a mode
switch.
clients/desktop-shell.c
patch
|
blob
|
history
diff --git
a/clients/desktop-shell.c
b/clients/desktop-shell.c
index
599c0a5
..
1a5a94f
100644
(file)
--- a/
clients/desktop-shell.c
+++ b/
clients/desktop-shell.c
@@
-1160,6
+1160,13
@@
output_handle_mode(void *data,
int height,
int refresh)
{
+ struct output *output = (struct output *)data;
+
+ if (flags & WL_OUTPUT_MODE_CURRENT) {
+ window_schedule_resize(output->panel->window, width, 32);
+ window_schedule_resize(output->background->window,
+ width, height);
+ }
}
static void