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

Mouse pointer to disappear after a while? #293

Open
bodhi-baum opened this issue Sep 15, 2023 · 13 comments
Open

Mouse pointer to disappear after a while? #293

bodhi-baum opened this issue Sep 15, 2023 · 13 comments

Comments

@bodhi-baum
Copy link

It always bothers me that the mouse pointer does not disappear / fade out after a certain time.

Can this possibly be integrated as a feature?

@Axel-Erfurt
Copy link

I think this is difficult since mpv is embedded in the main window.

@Axel-Erfurt
Copy link

Axel-Erfurt commented Sep 23, 2023

That would be one possibility, then the mouse cursor would be hidden in full screen mode.

hypnotix.py line 1694 function toggle_fullscreen

    def toggle_fullscreen(self):
        if self.stack.get_visible_child_name() == "channels_page":
            # Toggle state
            self.fullscreen = not self.fullscreen
            if self.fullscreen:
                # Fullscreen mode
                self.window.fullscreen()
                self.sidebar.hide()
                self.headerbar.hide()
                self.status_label.hide()
                self.info_revealer.set_reveal_child(False)
                self.channels_box.set_border_width(0)
                ### hide mouse cursor ###
                blank = Gdk.Cursor(Gdk.CursorType.BLANK_CURSOR)
                self.window.get_window().set_cursor(blank)
            else:
                # Normal mode
                self.window.unfullscreen()
                if self.content_type == TV_GROUP:
                    self.sidebar.show()
                self.headerbar.show()
                self.channels_box.set_border_width(12)
                ### show mouse cursor ###
                arrow = Gdk.Cursor(Gdk.CursorType.ARROW)
                self.window.get_window().set_cursor(arrow)

@bodhi-baum
Copy link
Author

Disapearing in fullscreen mode would be quite good.

@bodhi-baum
Copy link
Author

Axel-Erfurt could you bring your code in?

@ALi3naTEd0
Copy link

I'm also very interested in this, since I've been using hypnotix for a while now, and I love it, I'm coming from Windows so appreciate the work!

@Axel-Erfurt
Copy link

Axel-Erfurt could you bring your code in?

I have done.

@ALi3naTEd0
Copy link

So we need to edit py file like above?

@Axel-Erfurt
Copy link

You can try the deb from my Releases

It's like the original with the added feature of hiding the mouse cursor in full screen mode.

@ALi3naTEd0
Copy link

The thing is, I'm on Garuda Linux, so it was available by default. I'm not sure how to get/update that version...

@Axel-Erfurt
Copy link

You can also wait and see if the pull request is accepted.

@ALi3naTEd0
Copy link

ALi3naTEd0 commented Dec 2, 2023

That will make hypnotix to auto-update next paru -Syu right?

I guess I could also just clone the git since it's updated? And makepkg from there?

Edit: didn't work there's not PKGBUILD

@ALi3naTEd0
Copy link

Today hypnotix got updated, but they won't fix this yet, why?

@Axel-Erfurt
Copy link

It always takes a while for pull requests to be checked and accepted or rejected.

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

No branches or pull requests

3 participants