File: 0002-Remove-activateWindow-when-EditDock-is-toggled.patch

package info (click to toggle)
sqlitebrowser 3.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,616 kB
  • sloc: cpp: 89,765; xml: 45; python: 27; sh: 7; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 770 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: kehugter <cuatro@posteo.net>
Date: Wed, 11 Oct 2017 22:54:06 +0200
Subject: Remove `activateWindow()` when EditDock is toggled

There's no need to set sqlitebrowser as active window when updating
the main application window. The `activateWindow()` call prevents
switching workspaces in GNOME and Cinnamon desktops.

Fixes #934
---
 src/MainWindow.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 4e883d8..7f3cd60 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -838,7 +838,6 @@ void MainWindow::toggleEditDock(bool visible)
 {
     if (!visible) {
         // Update main window
-        activateWindow();
         ui->dataTable->setFocus();
     } else {
         // fill edit dock with actual data