diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-27 23:43:05 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | 97672295ed50d1d6272876c4a3b6b5607cab05c6 (patch) | |
tree | 00b7e77be7e7b1323f494a6e6e075490e37605b1 /sway/desktop/xdg_shell.c | |
parent | Fix getting adjacent output (diff) | |
download | sway-97672295ed50d1d6272876c4a3b6b5607cab05c6.tar.gz sway-97672295ed50d1d6272876c4a3b6b5607cab05c6.tar.zst sway-97672295ed50d1d6272876c4a3b6b5607cab05c6.zip |
Don't unmaximize floating views
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index 30990f67..7a39a84c 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -111,14 +111,6 @@ static void set_activated(struct sway_view *view, bool activated) { | |||
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||
114 | static void set_tiled(struct sway_view *view, bool tiled) { | ||
115 | if (xdg_shell_view_from_view(view) == NULL) { | ||
116 | return; | ||
117 | } | ||
118 | struct wlr_xdg_surface *surface = view->wlr_xdg_surface; | ||
119 | wlr_xdg_toplevel_set_maximized(surface, tiled); | ||
120 | } | ||
121 | |||
122 | static void set_fullscreen(struct sway_view *view, bool fullscreen) { | 114 | static void set_fullscreen(struct sway_view *view, bool fullscreen) { |
123 | if (xdg_shell_view_from_view(view) == NULL) { | 115 | if (xdg_shell_view_from_view(view) == NULL) { |
124 | return; | 116 | return; |
@@ -170,7 +162,6 @@ static const struct sway_view_impl view_impl = { | |||
170 | .get_string_prop = get_string_prop, | 162 | .get_string_prop = get_string_prop, |
171 | .configure = configure, | 163 | .configure = configure, |
172 | .set_activated = set_activated, | 164 | .set_activated = set_activated, |
173 | .set_tiled = set_tiled, | ||
174 | .set_fullscreen = set_fullscreen, | 165 | .set_fullscreen = set_fullscreen, |
175 | .wants_floating = wants_floating, | 166 | .wants_floating = wants_floating, |
176 | .for_each_surface = for_each_surface, | 167 | .for_each_surface = for_each_surface, |