mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Changed my mind about r7164. Instead of checking for zero flags
inside one single uxsel front end, better to do it centrally and
avoid passing zero flags on to the front end in the first place. I'm
sure other similarly structured front ends could get confused by it
too.
[originally from svn r7171]
[r7164 == 65f9735b95
]
This commit is contained in:
@ -2695,15 +2695,12 @@ int uxsel_input_add(int fd, int rwx) {
|
||||
if (rwx & 1) flags |= GDK_INPUT_READ;
|
||||
if (rwx & 2) flags |= GDK_INPUT_WRITE;
|
||||
if (rwx & 4) flags |= GDK_INPUT_EXCEPTION;
|
||||
if (flags)
|
||||
return gdk_input_add(fd, flags, fd_input_func, NULL);
|
||||
else
|
||||
return -1;
|
||||
assert(flags);
|
||||
return gdk_input_add(fd, flags, fd_input_func, NULL);
|
||||
}
|
||||
|
||||
void uxsel_input_remove(int id) {
|
||||
if (id > 0)
|
||||
gdk_input_remove(id);
|
||||
gdk_input_remove(id);
|
||||
}
|
||||
|
||||
char *guess_derived_font_name(GdkFont *font, int bold, int wide)
|
||||
|
Reference in New Issue
Block a user