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 | if let Some(client) = self.clients.get(&event.window) { | 3110 | if let Some(client) = self.clients.get(&event.window) { |
| 3111 | let monitor = &self.monitors[client.monitor_index]; | 3111 | let monitor = &self.monitors[client.monitor_index]; |
| 3112 | let is_floating = client.is_floating; | 3112 | let is_floating = client.is_floating; |
| 3113 | + let is_fullscreen = client.is_fullscreen; | ||
| 3113 | let has_layout = self.layout.name() != "normie"; | 3114 | let has_layout = self.layout.name() != "normie"; |
| 3114 | 3115 | ||
| 3115 | if event.value_mask.contains(ConfigWindow::BORDER_WIDTH) { | 3116 | if event.value_mask.contains(ConfigWindow::BORDER_WIDTH) { |
| 3116 | if let Some(c) = self.clients.get_mut(&event.window) { | 3117 | if let Some(c) = self.clients.get_mut(&event.window) { |
| 3117 | c.border_width = event.border_width; | 3118 | c.border_width = event.border_width; |
| 3118 | } | 3119 | } |
| 3120 | + } else if is_fullscreen { | ||
| 3121 | + self.send_configure_notify(event.window)?; | ||
| 3119 | } else if is_floating || !has_layout { | 3122 | } else if is_floating || !has_layout { |
| 3120 | let mut x = client.x_position as i32; | 3123 | let mut x = client.x_position as i32; |
| 3121 | let mut y = client.y_position as i32; | 3124 | let mut y = client.y_position as i32; |