[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/7] ui/gtk: implement show-cursor option
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v3 5/7] ui/gtk: implement show-cursor option |
Date: |
Wed, 12 Feb 2020 12:57:33 +0100 |
> > + if (s->opts->has_show_cursor && s->opts->show_cursor) {
> > + s->null_cursor = NULL; /* default pointer */
> > + } else {
> > + s->null_cursor = gdk_cursor_new_for_display(window_display,
> > + GDK_BLANK_CURSOR);
> > + }
>
> I think it would make more sense to have all the logic related to what
> cursor is used in the same location, instead of split up between here and
> gd_update_cursor().
Note that it isn't that simple. There are a few more places in
gd_grab_*() which use s->null_cursor and would need adaption.
cheers,
Gerd
- [PATCH v3 0/7] ui: rework -show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 2/7] ui: wire up legacy -show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 3/7] ui/sdl: switch to new show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 7/7] ui: deprecate legacy -show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 6/7] ui: drop curor_hide global variable., Gerd Hoffmann, 2020/02/07
- [PATCH v3 5/7] ui/gtk: implement show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 1/7] ui: add show-cursor option, Gerd Hoffmann, 2020/02/07
- [PATCH v3 4/7] ui/cocoa: switch to new show-cursor option, Gerd Hoffmann, 2020/02/07
- Re: [PATCH v3 0/7] ui: rework -show-cursor option, Ján Tomko, 2020/02/08