Added logic to help check if fullscreen mode before moving border (should theoretically fix steam games that dont use proton as a backend)
Browse files
+3 −0 src/window_manager.rs
| @@ -3110,12 +3110,15 @@ impl WindowManager { | ||
| 3110 | 3110 | if let Some(client) = self.clients.get(&event.window) { |
| 3111 | 3111 | let monitor = &self.monitors[client.monitor_index]; |
| 3112 | 3112 | let is_floating = client.is_floating; |
| 3113 | + let is_fullscreen = client.is_fullscreen; | |
| 3113 | 3114 | let has_layout = self.layout.name() != "normie"; |
| 3114 | 3115 | |
| 3115 | 3116 | if event.value_mask.contains(ConfigWindow::BORDER_WIDTH) { |
| 3116 | 3117 | if let Some(c) = self.clients.get_mut(&event.window) { |
| 3117 | 3118 | c.border_width = event.border_width; |
| 3118 | 3119 | } |
| 3120 | + } else if is_fullscreen { | |
| 3121 | + self.send_configure_notify(event.window)?; | |
| 3119 | 3122 | } else if is_floating || !has_layout { |
| 3120 | 3123 | let mut x = client.x_position as i32; |
| 3121 | 3124 | let mut y = client.y_position as i32; |