aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-26 23:45:27 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commitbecceafa7f12f1a1668daca0b27c4102282d9076 (patch)
tree1880a51996cbcac9582a1707fdf4f9ceb97392c7 /sway
parentDon't let xwayland views set position unless unmanaged (diff)
downloadsway-becceafa7f12f1a1668daca0b27c4102282d9076.tar.gz
sway-becceafa7f12f1a1668daca0b27c4102282d9076.tar.zst
sway-becceafa7f12f1a1668daca0b27c4102282d9076.zip
Remove unfinished wants_floating implementation for xwayland
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/xwayland.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index f3264ddc..7dc860aa 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -201,22 +201,6 @@ static bool wants_floating(struct sway_view *view) {
201 // 201 //
202 // We also want to return true if the NET_WM_STATE is MODAL. 202 // We also want to return true if the NET_WM_STATE is MODAL.
203 // wlroots doesn't appear to provide all this information at the moment. 203 // wlroots doesn't appear to provide all this information at the moment.
204 struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
205 uint32_t *atom = xsurface->window_type;
206 for (size_t i = 0; i < xsurface->window_type_len; ++i) {
207 wlr_log(L_DEBUG, "xwayland window type %i", *atom);
208 // TODO: Come up with a better way of doing this
209 switch (*atom) {
210 case 36: // NET_WM_WINDOW_TYPE_UTILITY
211 case 44: // NET_WM_WINDOW_TYPE_SPLASH
212 case 276: // ? PGP passphrase dialog
213 case 337: // ? Firefox open file dialog
214 case 338: // ? Firefox open file dialog
215 return true;
216 }
217 ++atom;
218 }
219
220 return false; 204 return false;
221} 205}
222 206