Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guake follows mouse focus when have 2 monitors #1761

Open
parr0tr1ver opened this issue May 21, 2020 · 7 comments · Fixed by #1775
Open

guake follows mouse focus when have 2 monitors #1761

parr0tr1ver opened this issue May 21, 2020 · 7 comments · Fixed by #1775

Comments

@parr0tr1ver
Copy link

parr0tr1ver commented May 21, 2020

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Guake.

For how to run the latest Guake in your computer, please refer to Install from source.

Describe the bug

I have 2 monitors. When guake shows in the first monitor, and then I click on the second monitor, guake shows in the second monitor.

Expected behavior

guake should stay in the first monitor as previous version does.

Actual behavior

What you actually get.

To Reproduce

Provide the steps to reproduce the behavior


Please run $ guake --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting. And make sure you run the command OUTSIDE the Guake.

$ guake --support

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.60.1

Vte Runtime Version: 0.60.1


GTK+ Version: 3.24.18

GDK Backend: GdkX11.X11Display


Desktop Session: xubuntu


Display: :0.0

RGBA visual: True

Composited: True

  • Monitor: 0 - DEL HDMI-1
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 509 x 286 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DEL HDMI-2
    • Geometry: 1920 x 1080 at 1920, 0
    • Size: 509 x 286 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
@woodpenker
Copy link
Contributor

I have the same situation. When toggling guake on, click on the other screen twice, then guake windows will move to that screen.
This is really annoying.

guake --support

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: i3


Display: :0

RGBA visual: True

Composited: False

  • Monitor: 0 - SHP eDP-1
    • Geometry: 1920 x 1080 at 0, 1080
    • Size: 294 x 165 mm²
    • Primary: True
    • Refresh rate: 59.93 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DEL DP-1
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 527 x 296 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

@Carusu
Copy link

Carusu commented Jun 21, 2020

same here. I reverted to 3.6.3 in order to have the hod behaviour

@woodpenker
Copy link
Contributor

woodpenker commented Jun 22, 2020

hi, gays, I find a solution to avoid this annoying situation for version 3.7.0:

  1. open the file guake/utils.py
  2. find the function set_window_state(self, window_state) at line 164
  3. modify this function to below codes, which just modify line 172.
    def set_window_state(self, window_state):
        self.window_state = window_state
        setattr(self.window, self.FULLSCREEN_ATTR, bool(window_state & Gdk.WindowState.FULLSCREEN))

        if not window_state & Gdk.WindowState.WITHDRAWN:
            if self.is_fullscreen():
                self.fullscreen()
            # modify the codes here:
            elif window_state & Gdk.WindowState.FOCUSED and self.guake.hidden:
                self.unfullscreen()

Then this problem solved. I wish this helps the one who meets it.

@Carusu
Copy link

Carusu commented Oct 3, 2021

Hello, I am still affected by this bug, with the latest git build (I also tried to edit the utils.py file but still the guake window follows the mouse focus)
I am using i3wm fwiw

guake --support ─┘

(guake:135562): Gtk-WARNING **: 11:33:57.484: Theme parsing error: gtk.css:4:13: Not using units is deprecated. Assuming 'px'.

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.64.2

Vte Runtime Version: 0.64.2


GTK+ Version: 3.24.30

GDK Backend: GdkX11.X11Display


Desktop Session: i3


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - DEL HDMI-A-0
    • Geometry: 1920 x 1080 at 1920, 0
    • Size: 527 x 296 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - PHL DVI-D-0
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 477 x 268 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

@Davidy22 Davidy22 reopened this Oct 3, 2021
@Davidy22
Copy link
Collaborator

Davidy22 commented Oct 3, 2021

Hrm, alright. A lot of issues to do with multi monitor support, if only I had a second one for testing

@white-gecko
Copy link

Is this issue a duplicate of #1689 or vice versa?

@white-gecko
Copy link

If it is a duplicate I think it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants